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

500 error when running /admin/v1/orgs/{orgId}/users

If I run the REST api call:{orgid}/users?cursor=0

It returns a status of 500

JSON body is:


{    "errors": [        {            "id""7b359bcc-e2e1-4ed1-bd24-d59a4e64a3c8",            "status""500",            "code""ADMIN-500-1",            "title""Internal error",            "detail""We encountered an internal error."        }    ]}


If I remove the "cursor" parameter it works. But it used to work until about 2 days ago and I need the cursor because the results are paged

2 answers

Yes I had found that later on.

In my Python code I get the json object as currUserDetailPage['json'] and then apply the below code:

# Get the next cursor value
if 'next' in currUserDetailPage['json']['links']:
   nextCursorStr = currUserDetailPage['json']['links']['next']
   nextCursorMatch ='cursor=(.*)', nextCursorStr )
   if nextCursorMatch:
      cursor =[7:-1]
      logger.debug('Next cursor value = ' + cursor, extra={'vstsLevel':coreconf.vsPurple})
      logger.error('Next link found but no cursor value specified', extra={'vstsLevel':coreconf.vsRed})
   allDataCollected = True

0 votes
Tyler B Atlassian Team Mar 10, 2021

Hey Tony,

I know this is coming late for you, but your post shows up in various searches for this issue so I thought I'd leave a comment here for future people.

When you send a request to that endpoint, you will get a JSON object that is structured broadly like this:

      "self":"{orgid}/users",      "next":"{orgId}/users?cursor={a long string of random characters}"   }

You're interested in following that "" link. The cursor is not a number that you can increment through predictably.

Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Published in Confluence

Confluence Mythbusters: Does Atlassian even use Confluence?

Hi, Confluence collaborators! As part of #Confluence-Collaboratory month, we’ve created a very special Mythsbusters segment, where we're dive into an interesting myth and uncover the truth behind i...

1,443 views 7 29
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