How to export a list of teams and members in Opsgenie

Platform Notice: Cloud - This article applies to Atlassian products on the cloud platform.

Summary

In some cases, OpsGenie owners or admin would like to export Teams and Team's members in Opsgenie. Currently, this option is not available from Opsgenie UI to export this information.

This article offers a workaround to fetch or export Teams and Team's members in Opsgenie

We have an open feature request to have the ability to set the request type when the issue is created through an Opsgenie alert

Solution

In the current design, the only way to export the teams and the team members by making an API call and using Tags.

This workaround is only applicable for OpsGenie standalone Standard and Enterprise plans, or the Jira Service Management OpsGenie Premium and Enterprise subscription as it needs access to User Management Report under Analytics tab.

  • Use List Teams API to fetch Teams ID, API response should be similar to the below:
        {
            "id": "0074e9ce-3898-4653-8ecd-3ef40e355c79",
            "name": "2nd Schedule",
            "description": "",
            "links": {
                "web": "https://app.opsgenie.com/teams/dashboard/0074e9ce-3898-4653-8ecd-3ef40e355c79/main",
                "api": "https://api.opsgenie.com/v2/teams/0074e9ce-3898-4653-8ecd-3ef40e355c79"
            }
        },
  • After obtaining the Team ID from the 1st API call, make the API call to Get Team API, which will list out the members:
    "data": {
        "id": "0074e9ce-3898-4653-8ecd-3ef40e355c79",
        "name": "2nd Schedule",
        "description": "",
        "members": [
            {
                "user": {
                    "id": "ab703bbf-xxxx-xxxx-xxxx-357885f43c5e",
                    "username": "instancexxxxx@gmail.com"
                },
                "role": "user"
            }
  • Navigate to Settings Tab > Click on Users section from right pane > Select the user > Scroll down to About user > Click Edit > Under Tags:

  • Add a tag(s) to the users to indicate which team(s) they belong to then click Ok:

  • Navigate to Analytics Tab > On the User Management Report, leverage the Tags to filter out the users and export them directly.

Last modified on Jan 23, 2025

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.