I have a workspace created in bitbucket, without and organisation in atlassian.
While fetching webhooks from bitbucket, I am getting users account id, workspace name and all, but I need to fetch user email.
I found this solution https://api.atlassian.com/admin/v1/orgs/{org_id}/users/search
but this is not helpful in my case as there is no organisation created.
Hi Deepak,
We do not expose email address in our non-organisationally managed API's, so it's not possible to get this information for regular Bitbucket Cloud workspaces which are not part of an org, unfortunately. You would need to create a new workspace (all new workspaces are organisationally managed) and migrate the data from your existing workspace across to it:
Additionally, the API endpoint you've referenced is deprecated. There is a new endpoint which is available to all org-managed workspaces which will return email address that you can find below:
There is a helpful community announcement blog that announces the new endpoint and has numerous conversations between users/our developers which you may find useful:
If you're not able to use a new workspace - I'd suggest providing feedback to our developers by clicking the Question Mark icon in the top-right of the screen of Bitbucket Cloud and selecting the "Give feedback" option from the dropdown highlighting this.
Cheers!
- Ben (Bitbucket Cloud Support)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.