Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

"Team API Keys not authorized to perform this action." for User API

Hi,

I am getting error "Team API Keys are not authorized to perform this action." when trying to fetch user information from my team (https://api.opsgenie.com/v2/users/). I am admin of the team, but I guess I will need a global API Key maybe? How can I get one? I need to fetch the full name of the team's members.

Thanks!

1 answer

1 accepted

1 vote
Answer accepted
Nick H
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Jan 28, 2022 • edited

Hi @lucas tomasini ,

That's correct - Team API keys are restricted to the User API - so you would need a Global API key.

Global API keys can be from a global API integration - meaning No Team is assigned to the integration, or from the Settings >> API Key Management tab.

If you do not have access to global integrations (found under the Settings >> Configured Integrations tab), or the API Key Management tab, then your role is restricted to these permissions.

You'd want to connect with either an account Admin or Owner to shared an API key with you.

If we don't have access to a Global key, how can we set recipients/users in the escalation or schedules if we don't have their id.

I wanted to do something like

 

    recipient {
      type = "user"
      id   = data.opsgenie_user.johnsmith.id
    }
I understand that we can get all the ids of the users from 
data "opsgenie_team" "team" {
  name = "Team"
}
but how do we know where to set the ids in escalation and schedule if we don't have the names of the users in the member block?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events