๐ก๏ธPermissions
Get user permissions in a workspace
GET /2.0/workspaces/{workspace}/permissions
Returns the list of members in a workspace and their permission levels. Permission can be:
owner
collaborator
member
Gets all repository permissions in a workspace
GET /2.0/workspaces/{workspace}/permissions/repositories
Returns an object for each repository permission for all of a workspace's repositories.
Permissions returned are effective permissions: the highest level of permission the user has. This does not distinguish between direct and indirect (group) privileges.
Only users with admin permission for the team may access this resource. The permissions can be:
admin
write
read
Results may be further filtered or sorted by repository, user, or permission by adding the following query string parameters:
q=repository.name="geordi"
orq=permission>"read"
sort=user.display_name
Get repository permission in a workspace
GET /2.0/workspaces/{workspace}/permissions/repositories/{repo_slug}
Returns an object for the repository permission of each user in the requested repository.
Permissions returned are effective permissions: the highest level of permission the user has. This does not distinguish between direct and indirect (group) privileges.
Only users with admin permission for the repository may access this resource, the permissions can be:
admin
write
read
Results may be further filtered or sorted by user, or permission by adding the following query string parameters:
q=permission>"read"
sort=user.display_name
Note that the query parameter values need to be URL escaped so that =
would become %3D
.
Last updated