Is there a way to use the Rest API to automatically export user information from the cloud?

Mohammad Dirbas April 5, 2024

Hello Atlassian support team,

I am currently developing an application to add users to groups using Rest API. As an admin, I have generated the required token to perform such admin tasks within my script. Now I am facing the problem that extracting user information such as user ID's from the Atlassian cloud takes a long time. For 118 users, it takes about 25 minutes to complete the import.

I notice that there is a way to export a csv file from the Atlassian Cloud admin page with all user information including the needed user IDs. This happens within seconds, then I get this file sent to my admin email.

Is there a way to do this within the rest API skipping this email so I can export the file and load it directly from my script? This would save me a lot of time.

Thanks for your help.
Regards,
Mohammad Dirbas

1 answer

1 accepted

1 vote
Answer accepted
Rebekka Heilmann _viadee_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 8, 2024

Hi @Mohammad Dirbas and welcome to the Community,

You'll probably know  The User management REST API REST API (atlassian.com) as you found a way to get the User's info one by one.

You could maybe check out The Organizations REST API REST API (atlassian.com) to get all Users in one go?

Other than that, there are no APIs that provide further functionality within Org/User management at the moment.

Mohammad Dirbas April 10, 2024

Hi @Rebekka Heilmann _viadee_ , 

Thank you for your helpfull answer :). I used that and fixed the Problem.

Regards,
Mohammad Dirbas

Suggest an answer

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

Atlassian Community Events