How can I use the rest api to get a list of ALL of a users permissions

Max Brooks
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!
November 5, 2024

So far I see I can use permissions schemes to get permissions that are given to groups and then query which users are in that group. However how am I supposed to track permissions on application roles or to types like "Project Lead". For example, when I query permission schemes there's no way for me to see which application role gets that scheme. Same for which users have 'Project Lead' type permissions. Any advice?

1 answer

0 votes
Marios Marneros
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.
November 5, 2024

Hey @Max Brooks , welcome to the Atlassian Community!

You can use the API to get the project role membership. This will give you a list of users that are members of a specified role in a specified project.

You will need the project id and role id. Here is the API documentation - https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-project-roles/#api-rest-api-2-project-projectidorkey-role-id-get

There are other options in the API documentation as well!

Let me know if you have any other questions regarding this. If the above was helpful please don't forget to accept the answer!

Max Brooks
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!
November 6, 2024

 @Marios Marneros Are these the projects the only source of permissions for a user? can't they also receive direct permissions outside of a project via a group or role?

Marios Marneros
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.
November 13, 2024

@Max Brooks you are right, users can get permissions from being in a group as well. The above is for being a member of a role in a project. You will need to get the permission schemes, look at the roles and groups and then get the members of those roles and groups. Keep in mind that the roles are created globally but are specific to a project, group membership is set instance wide.

 

Suggest an answer

Log in or Sign up to answer