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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.