-
Suggestion
-
Resolution: Unresolved
-
None
Request to add email address details to the workspace permission API endpoint as it would be helpful in automations.
GET /2.0/workspaces/{workspace}/permissions GET /2.0/workspaces/{workspace}/members
Workaround:
- Navigate to "Workspace Settings" > "User Directory"
- Click on the "EXPORT" option available at the top right corner of the page
- This will allow admins to download a CSV file that contains a list of workspace users along with their email address
Adding to above request:
To include user email address along with their UUID's for other API endpoints
I have a workaround for people using Bitbucket and Atlassian:
You can make call to Atlassian API with email to get Atlassian user ID:
https://<your_workspace_name>.atlassian.net/rest/api/3/user/search?query=<email address>
you will get json that has Atlassian user ID , that you can use for Bitbucket API to get bitbucket user UUID
https://api.bitbucket.org/2.0/users/<Atlassian user ID >
it's not documented , but in this request you can put not only Bitbucket uuid but Atlassian user ID too.
you will get json with Bitbucket UUID as answer
terraform :