You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hello,
I want get my team menber's user ID.
Because it cannot be confirmed from the screen.
I got user information with API(https://api.bitbucket.org/2.0/teams/xxxxx/members)
but nickname is Japanese Charactor It doesn't seem to be a user ID.
Doesn't "nickname" display user ID?
I can't see them in any field.
Please tell me can get team member's UserID.
I also get another API(https://api.bitbucket.org/2.0/users/xxxxx)
but I got same result.
Hello @hi-oka,
The right identifier of a user (and many other entities in Bitbucket REST API) is the uuid field. Unlike nickname, which can change over time, uuid always remains same for the given user.
For instance, request to this URL will return display names of team members along with their uuids and pagination parameters required to fetch all pages of the response:
https://api.bitbucket.org/2.0/teams/xxxx/members?fields=values.display_name,values.uuid,page,next
Note that uuid contains curly braces and should be used like that anywhere in the REST API or URLs.
Hope this helps. Let me know if you have any questions.
Cheers,
Daniil
Hello Daniil,
Thank you for your answer.
I understood that uuid is identifier.
But I have noticed.
This API is get team members, does not retrieve team plan-users.
Is there an API to get a list of plan-users? (URL :https://bitbucket.org/account/user/(ID)/plan-users/)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
what is xxxx in the below call?
https://api.bitbucket.org/2.0/teams/xxxx/members?fields=values.display_name,values.uuid,page,next
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Sarah Dwyer @Daniil Penkin this endpoint show only the display name and not the bitbucket user name, how can I get it for username? or even email?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.