Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I get a list of all Permission Schemes and the projects associated with it via API?

Fabio Ignacio March 21, 2024

I'm trying to pull a list of all permission schemes and the projects associated with them as I'm looking to push an update to specific projects. Some permission schemes are shared, so I'm trying to pull a complete list to filter it out first.

I was able to use the REST API from https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-permission-schemes/#api-rest-api-3-permissionscheme-get however, some permissions schemes that I know have projects associated with them are returning without a scope.

I'm trying to debug and I know some of the indexes being returned have projects associated with them but are returning "Key Error"

print(data["permissionSchemes"][i]["scope"]


Does anyone know of other API calls to get all Permission Schemes from their projects or all projects from all permission schemes?

1 answer

1 accepted

1 vote
Answer accepted
Jehan Bhathena
Community Champion
March 24, 2024

Hi @Fabio Ignacio 

There is no direct API that I found that can get you this information, what I would suggest as an alternative :

Hope this helps.

Fabio Ignacio March 25, 2024

Thank you so much @Jehan Bhathena , this worked perfectly for what I needed.

I guess when we're tired we miss the correlation between the API calls haha.

Cheers!

Suggest an answer

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

Atlassian Community Events