List users in a workspace
Returns 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 theemailfield to the defaultuserresponse 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.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example: {workspace UUID}.
Responses
Section titled “ Responses ”The list of users that are part of a workspace.
A paginated list of workspace memberships.
object
Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute.
Page number of the current results. This is an optional element that is not provided in all responses.
Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values.
Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs.
Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs.
object
object
A link to a resource related to this object.
object
object
Links related to an Account.
object
A link to a resource related to this object.
object
object
object
A link to a resource related to this object.
object
A link to a resource related to this object.
object
A link to a resource related to this object.
object
A link to a resource related to this object.
object
A link to a resource related to this object.
object
A link to a resource related to this object.
object
A link to a resource related to this object.
object
A link to a resource related to this object.
object
The workspace’s immutable id.
The name of the workspace.
The short label that identifies this workspace.
Indicates whether the workspace is publicly accessible, or whether it is private to the members and consequently only visible to members.
Indicates whether the workspace enforces private content, or whether it allows public content.
Controls the rules for forking repositories within this workspace.
- allow_forks: unrestricted forking
- internal_only: prevents forking of private repositories outside the workspace or to public repositories
Example
{ "values": [ { "workspace": { "forking_mode": "allow_forks" } } ]}When more than 90 emails were provided when querying by email.
Base type for most resource objects. It defines the common type element that identifies an object’s type. It also identifies the element as Swagger’s discriminator.
object
object
Optional structured data that is endpoint-specific.
object
Example generated
{ "type": "example", "error": { "message": "example", "detail": "example", "data": {} }}The request wasn’t authenticated.
Base type for most resource objects. It defines the common type element that identifies an object’s type. It also identifies the element as Swagger’s discriminator.
object
object
Optional structured data that is endpoint-specific.
object
Example generated
{ "type": "example", "error": { "message": "example", "detail": "example", "data": {} }}