How to export a list of teams and members in Opsgenie

Platform Notice: Cloud Only - This article only 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 team members is to make an API call and use 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:

1 2 3 4 5 6 7 8 9 { "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:

1 2 3 4 5 6 7 8 9 10 11 12 "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 > ClickEdit > 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.

Updated on March 24, 2025

Still need help?

The Atlassian Community is here for you.