Using the graphql explorer I am able to get teams data by following the teams documentation. However, when I try hitting the graphql endpoint via postman I get the following error: { "message": "This request does not contain the right authorisation scopes to access this field", "locations": [], "path": [ "team", "teamSearch" ], "extensions": { "requiredScopes": [ "view:team:teams" ], "providedScopes": [ "manage:jira-project", "read:jira-work", "offline_access", "write:servicedesk-request", "manage:jira-webhook", "write:jira-work", "read:me", "read:jira-user", "read:servicedesk-request" ], "errorSource": "GRAPHQL_GATEWAY", "statusCode": 403, "agg": { "severity": "NORMAL", "ugcPiiSafe": true }, "classification": "InsufficientOAuthScopes" } }
I went to the Atlassian developer console to add the missing “view:team:teams” scopes but I do not see it there. Does anyone know how to add this scope? The documentation does say it requires teams scopes but I cannot find anywhere on how to add it
Welcome to the Atlassian community @jenkins6g,
As far as I know, there is no way to add scopes for accessing teams:
Is there any way to access teams via GraphQL? is it a Forge app feature or something else? I also encountered the same problem. There seems to be no way to add the “view:team:teams” scope to my Jira OAuth Client, but the GraphQL API is clear that it’s required. Surely, there must be some way to access this API.
Edit: For clarity, the docs (GraphQL API) say that THIRD_PARTY_OAUTH is allowed, which makes me think there should be a way to do this. API_TOKEN is also supported, but I’m not sure how to make that work either.