How to export users in CSV file by API

raman sharma May 27, 2020

As we know we can export the list of all the users in CSV file from the screen. The option is available under site -> users.

I am identifying the API for the same.

I found a few link but those are workaround and not working now.

Kindly share the knowledge if anyone have idea about this.

1 answer

0 votes
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 29, 2020

Hello @raman sharma

Thank you for reaching out. 

Unfortunately, there is no REST API Endpoint to export users to CSV. We have the following feature request created to implement it:

REST API endpoint to export all users to CSV 

Feel free to vote and watch the suggestion to increase its priority and also receive notifications about any updates.

As a possible workaround,  you can grab the cookie from an active site-admin session from the browser and then use it to authenticate a REST API POST request sent to the below internal endpoint (replace <CLOUD-ID> with your real cloud instance id):

https://admin.atlassian.com/gateway/api/adminhub/um/site/<CLOUD-ID>/users/export

As the body you can send something like:

{
includeApplicationAccess: true
includeGroups: false
includeInactiveUsers: true
selectedGroupIds: []
}

Please notice this is just a workaround, the endpoint is not official, not documented, and may change over time.

Let us know if you have any questions.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events