When I have the username how can I get the accountId from the user? How can I find it via REST API? I dont have any other data except for the user name
You can use the Find users endpoint to do it, it takes either the display name or the email address to find the user. Get user endpoint used to take the username, but that has been deprecated because of GDPR, you can see the notice here.
Thanks, is there a way to get the display name or the mail address via the user name?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you are on Data Center/Server then the Get user endpoint still takes the username, it is only on Cloud that it does not, and on Cloud your username is your 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.
Hello,
About the Cloud, I would want to ask if it is possible to get the user’s email address via API, because the information which I get is for display_name, nickname and uuid. display_name and nickname are totally different from the username or email address. On other topics about it I see that it is private information, but shouldn’t be available for access via token or AppPassword? Is it possible to get such an information? Even with the specific uuid of the user with https://api.bitbucket.org/2.0/users/<uuid> does not return anything specific as this.
Thank you in advance!
Best regards!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Elena Dzhordzhilova This should be a separate question. Based on the documentation for Bitbucket you can only get the email address for the current user, there is no way of getting the email address for other users, at least not at the moment. For Jira and Confluence you can get the email by accessing the Get user endpoint.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.