Access denied due to missing scopes, but the proper scopes are in place

Hello! I’m a developer trouble-shooting an error with a Jira integration. We have used OAuth to connect to Jira, and are successfully calling https://api.atlassian.com/ex/jira/{org-id}/rest/servicedeskapi/...

When a call is made to https://api.atlassian.com/ex/jira/{org-id}/rest/api/latest/search/{jql}, I am getting a 403 error with the error message {"errorMessages":["The app is not installed on this instance."]}. This call is successful for other org-ids, so I know that my jql is correct. The user who I am OAuthed as is a Jira Admin. I also confirmed that Jira Service Management is active.

When digging into the response from the API, I got the following error message signifying that the app was granted no scopes. However, we have all five of the scopes in the second list set up ([read:issue-details:jira, read:audit-log:jira, read:avatar:jira, read:field-configuration:jira, read:issue-meta:jira]) and again this call is working for other org-ids.

The org this is failing for is a more recent connection, if that provides any more help.

What other configuration or permission issues could cause this error?

@AlbusDumbledore could you please file this with Developer and Marketplace Support, providing a request trace ID or the OAuth 2.0 client ID, the cloud ID and the time of a request?

I also see that you filed a very similar question a few weeks ago.

1 Like