List users in a workspace
Changed onReturns all members of the requested workspace.
This endpoint additionally supports filtering by email address, if called by a workspace administrator, integration or workspace access token. This is done by adding the following query string parameter:
- q=user.email IN ("user1@org.com","user2@org.com")
When filtering by email, you can query up to 90 addresses at a time. Note that the query parameter values need to be URL escaped, so the final query string should be:
- q=user.email%20IN%20(%22user1@org.com%22,%22user2@org.com%22)
Email addresses that you filter by (and only these email addresses) can be included in the response using the fields query parameter:
- &fields=+values.user.email - add the email field to the default user response object
- &fields=values.user.email,values.user.account_id - only return user email addresses and account IDs
Once again, all query parameter values must be URL escaped.
Request
- Base URLhttps://api.bitbucket.org/2.0
- URLhttps://api.bitbucket.org/2.0/workspaces/{workspace}/members
- Auth
- OAuth 2Authorization code: https://bitbucket.org/site/oauth2/authorizeToken URL: https://bitbucket.org/site/oauth2/access_token scopes: account
- or HTTP basic
- or API key in header Authorization
Response
The list of users that are part of a workspace.
Changes
- info
added the optional property
/////to the response with the status
- info
- warning
removed the optional property
/////from the response with the status - info
added the non-success response with the status
- info
added the optional property
/////to the response with the status - info
added the optional property
/////to the response with the status
- warning