Forums

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

Is there a way to retrive all users with issue creation permissions by project?

Dan Schtechel
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!
September 23, 2024

I want to get a list using api/3 of all users eligible of creating a ticket given a specific project but could not find an ideal way.

Would appreciate some help here 

2 answers

2 votes
Walter Buggenhout
Community Champion
September 23, 2024

Hi @Dan Schtechel and welcome to the Community!

Is there any reason why you would want to do this (for a single project) using the API? Essentially, the steps required to figure this out, would be to:

  • review your project's permission scheme to make sure who is granted the create issues permission. This can be:
    • public (in this case, anyone in the world could raise issues)
    • any logged in user (this represents every user with product access to Jira, more commonly referred to as any user with a license)
    • one or more project roles (users and user groups associated with this project role in your project can raise issues)
    • one or more user groups (not really recommended)
    • one or more individual users (really not recommended)
  • If you set up permissions according to best practices, you should be able to see the users / groups associated with project roles right in your project settings > people page, which may be a lot faster than trying to figure this out via the API.

If you want to find this information via the API, I'm quite sure you'd have to chain a series of API calls to fetch all pieces of information involved, e.g.

  • a call to get the permission scheme grants for the first step;
  • subsequent calls to retrieve the associated users with the way permissions are granted in your project

Also note that the create issues permission also requires the browse project permission. A user needs to be able to access a project before he/she can create issues in it.

Hope this helps!

Dick
Community Champion
September 23, 2024

It's a good thing that API calls require authentication. Said authentication is also applicable to the results a user can obtain from the Jira data inside the instance.

0 votes
Mehmet A _Bloompeak_
Atlassian Partner
September 23, 2024

Hi @Dick ,

You can use the below rest api:

/rest/api/3/user/permission/search?permissions=CREATE_ISSUES&projectKey=YOUR-PROJECT-KEY

Suggest an answer

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

Atlassian Community Events