List the grants (shares) on a resource
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
resourceType
Allowed values:
externalId
assignment
Allowed values:
Response
The subjects and roles granted on the resource.
assignment
Allowed values:
roleAssignments
memberships
The memberships behind the assignments, for rendering a share list.
Errors
400
Bad Request Error
403
Forbidden Error