Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Jira REST API to get the list of users who have permission to BROWSE an issue

Hello everyone,

In my cloud instance, I have created an Issue Security Scheme. Then I added an Issue Security Level to that scheme. In the security level, I added Single User (me). Finally, I assigned the Issue Security Scheme to a project.

 

But, surprisingly, when I call the following REST endpoint to get the list of users who have permission to BROWSE an issue of that project, it returns all of the users of the system including addon users.

 

def response = get("/rest/api/3/user/permission/search?projectKey=APD&permissions=BROWSE")

        .header('Content-Type', 'application/json')

        .asJson()

 

Please advise.

 

Thanks.

1 answer

1 accepted

0 votes
Answer accepted

In “Project permission” of my project, under “Browse Project” setting, it listed "any logged in user". Apparently, that was the reason why the API returned all the users.

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you