How to get project keys which I have permission for?

장동균
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 17, 2024

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-projects/#api-rest-api-3-project-search-get

I try to get project keys by this api. But this response includes all projects.

I want to get project keys which I have permission.

How to get this value by jira api? 

1 answer

0 votes
Salih Tuç
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 18, 2024

Actually, it returns the list of projects that the requester has permissions to see. You are probably an admin so it is returning all projects.

 

However, I am assuming that you are trying to list the user's permissions on each project. So, maybe you can combine this endpoint with "Find users with permission" endpoint.

So, in other words:

  • Get all projects
  • For each project, get users with permission. You may consider putting the users as key of the map and the list of projects as value for each key.

 

Or, if you are just looking for a user's application roles on each project, you can use any of the "Find users" endpoints and get "applicationRoles" attribute in the response.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events