Skip to navigation

List the grants (shares) on a resource

View as Markdown

Lists the role grants on a single resource — who it is shared with. Authorization: org admin, or the caller holds the resource’s share permission on the target (space:share/spacetype:share/work_session:manage; settings is admin-only); otherwise 403 forbidden. Query: resourceType (space | spacetype | settings | work_session) and externalId (required); optional assignment = direct | indirect filters to directly-assigned vs inherited grants. Returns the resource’s grants. work_session is readable here but NOT writable: the Workspace routes mint session grants, so POST/DELETE /grants still take only the three shareable types.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Query parameters

resourceTypeenumRequired
Allowed values:
externalIdstringRequired>=1 character
assignmentenumOptional
Allowed values:

Response

The subjects and roles granted on the resource.
assignmentenum
Allowed values:
roleAssignmentslist of objectsOptional
membershipslist of maps from strings to anyOptional
The memberships behind the assignments, for rendering a share list.

Errors

400
Bad Request Error
403
Forbidden Error