Forums

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

Find all project permissions for a user in a project

Neha Sharma
Contributor
February 25, 2020

Hi,

Is there a way to find the list of the permissions (Project PermissionKey list) for a specific user in a project ? There is no straightforward way to find it in groovy - but is there any suitable way to do it ?

 

Thanks in advance,

Neha

2 answers

1 vote
Brant Schroeder
Community Champion
February 25, 2020

Neha,
If you are a Jira admin you can go to the user management, look up a user and on the user details page click View Project Roles in the upper right hand corner.  This will display the users project roles across all projects.  

To check individual permissions you can also go to System and use the permission helper to check access.

You can also use this SQL to get permissions granted to groups assigned to project roles if your users are all in groups.  https://confluence.atlassian.com/jirakb/how-to-get-a-list-of-permissions-granted-to-groups-assigned-to-project-roles-790630266.html

Neha Sharma
Contributor
February 25, 2020

I wanted it done from groovy scripts actually. 

0 votes
Avinash Bhagawati {Appfire}
Community Champion
February 25, 2020

Hi @Neha Sharma ,

If you looking to get the project roles that are tagged to specific user in Jira projects, then you will get the results with help of Jira Command Line Interface. 

Below is the sample CLI action.

--action getProjectRoleByUserList --userId admin --outputType table

Output:

output 2.png

 

 

Thanks,

Avinash

Suggest an answer

Log in or Sign up to answer