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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Global permission to retrieve all users via rest api not working (JIRA/Scriptrunner Cloud)

Hello everybody,

As it is written in the JIRA rest api documentation, the following script should retrieve all the instance JIRA users:

def result = get("/rest/api/3/users/")
.header("Accept", "application/json")

To get it working, the documention says that the runner should have JIRA global permission "Browse users and groups" granted. The group in which the user belongs is jira-administrator, which has this permission.

However, when I run the script, I got a 403 error. If I add the "public" group to the "Browse user and groups" permission, it works fine. If a run the script as the scriptrunner addon user, I also get a 403.

I do not know if it is a JIRA/Scriptrunner integration problem , or just a JIRA rest api bug, so I submit this request to you hoping that someone can tell me more about this.



1 answer

Hi Cedric,

Thank you for your question.

I can confirm that the Get all users default Rest API which you are calling in your script as documented here is marked as Apps cannot access this REST resource.

This means that ScriptRunner for Jira Cloud is unable to call it and is why you are getting forbidden response when you make a rest API call to it as Atlassian imposes that ScriptRunner for Jira Cloud can only access the public rest API's which they mark as allowed to be used by Apps.

This means this is not a bug but is just a limitation of Jira Cloud where Atlassian mark this API as not allowed to be used by Plugins inside of Jira Cloud.

I hope this information helps.



Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Jira Cloud Performance Improvements

Hello everyone, I am a product manager in the Jira Cloud team focused on making sure our customers have a delightful experience using our products. Towards that goal, one of the areas which is extr...

146 views 1 8
Read article

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