-
Suggestion
-
Resolution: Unresolved
-
148
-
53
-
Summary
As an administrator I would like to have a REST API endpoint that I can call in order to export users to CSV. The same CSV export you can get from the instance user management when you click on 'export all users' documented in the below page:
Workaround
It is possible to 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. You may find a sample Python script in this link.
There is an updated Python script provided by the DEV team as the endpoint API is no longer valid link here
4326607df174 workaround worked well, however with the last browsers update to encrypt cookies, the browser_cookie3 approach has been blocked, so, I think, will not be possible for a while.
Any other workaround someone could have thought?
And following d108c8e54c86 comment, any updates on then this issue will be addressed to get an official API available? This export is a critical step for project control.