Hi, I am trying to use the new Granular API Tokens (API key with scopes) for an N8N integration, but I am facing a visibility issue.
The Scenario:
Endpoint: GET /rest/api/3/project (or /search)
User: Site Admin (has full access).
Goal: List all projects in the instance (including JSM projects).
The Problem:
When I use a Classic API Token (Basic Auth: Email + Token), the endpoint returns 148 projects.
When I use a Granular API Token (Bearer Auth), the endpoint returns an empty array [] (or 404 when querying a specific key like /project/KEY).
What I have tried:
I created a token with 50+ scopes, including every possible combination of:
read:project:jira
read:user:jira (and read:account)
read:application-role:jira
read:permission:jira
read:instance-configuration:jira
read:servicedesk-request:jira-service-management (since we have JSM projects)
Debugging results:
I checked /rest/api/3/mypermissions?permissions=BROWSE_PROJECTS using the Granular Token, and it returns havePermission: true.
The token works for creating issues (POST /issue), so authentication is successful.
Question:
Why does the Granular Token return an empty project list despite having read:project:jira and BROWSE_PROJECTS permission? Is there a hidden system scope required to “see” the projects list that Classic Tokens have by default?
Thanks for any help!
Hi,
I updated my setup to use the API Gateway URL: https://api.atlassian.com/ex/jira/{cloudId}/rest/api/3/.
Despite having 50+ scopes enabled (including read:project, write:issue, read:application-role, and read:permission), the results are inconsistent:
Tested on JSM and Jira Software projects with Header and Basic Auth.
All these operations work perfectly when using a Classic API Token via Basic Auth on the direct {site}.atlassian.net URL.
It appears Granular User Tokens fail to inherit project-level permissions or visibility when routed through the Gateway. Is there a specific system scope required to "unlock" project access that is missing from the standard scope selection list?
Thanks for any insights.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.