The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bitbucket API: Trouble retrieving username and email addresses of users/members within workspace

Sarmad Sabih
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!
July 14, 2020

Hi, I’m using a Bitbucket OAuth app to authenticate users and then calling APIs to get information about members/users within a worksapce. I’m having trouble accessing the email addresses or at least the public email addresses of users. The API documentation shows the username to be present in the responses but it's not there in the actual responses.

API documentation references
https://developer.atlassian.com/bitbucket/api/2/reference/resource/workspaces/%7Bworkspace%7D/members/%7Bmember%7D

It'd be great if someone knows a way to get the username and email addresses of users within a workspace that the authenticated user owns.

 

Thanks in advance.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Joao Sgreccia
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 15, 2020

Hi @Sarmad Sabih ,


Unfortunately, it is not possible to retrieve such information from bitbucket cloud APIs.
This happens in order to improve user privacy in accordance with GDPR regulations.
For more information:
https://developer.atlassian.com/cloud/bitbucket/bitbucket-api-changes-gdpr/

Thanks

TAGS
AUG Leaders

Atlassian Community Events