Skip to content
Navigation

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.

GET
https://api.cloudraker.com/authorization/grants/resource
Try it
Query parameters
Live API request

Authorization

  • bearerAuth
    HTTP
    required

Query parameters

  • resourceType
    space
    or
    spacetype
    or
    settings
    or
    work_session
    required
  • externalId
    string
    required
    minLength: 1
  • assignment
    optional
    direct
    or
    indirect

Returns

200

The subjects and roles granted on the resource.

JSON
  • assignment
    direct
    or
    indirect
    required
  • roleAssignments
    optional
    array of
    object
    • id
      string
      required
    • role
      object
      required
      • slug
        string
        required
    • resource
      object
      required
      • id
        string
        required
      • externalId
        string
        required
      • resourceTypeSlug
        string
        required
    • organizationMembershipId
      optional
      string
  • memberships
    optional
    array of
    map<unknown>

    The memberships behind the assignments, for rendering a share list.

400

Validation Error
JSON
  • success
    false
    required
  • error
    array of
    unknown
    required
  • data
    unknown
    required

403

Caller is not an admin and lacks the resource’s share permission

Type to search…

↑↓ navigate↵ selectEsc close