Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Extract full user list from Bitbucket using script

jayashree indhu
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 26, 2019

" Would you be able to write a script/utility that extract a full list of users from BitBucket? BitBucket has APIs you should be able to use to extract that information "

 

Could team help us on the above query.

1 answer

0 votes
DPKJ
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 27, 2019

Here is reference to the rest api - https://docs.atlassian.com/bitbucket-server/rest/6.6.0/bitbucket-rest.html#idp380

 

If you can call this rest api using admin credentials, and get list of users in Bitbucket. Sample using curl,

curl -u <USER_NAME>:<PASSWORD> <BITBUCKET_BASE_URL>/rest/api/1.0/users

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events