Skip to content
Navigation

List the grants held by a subject (membership or group)

Lists every role grant held by one subject — what a membership or group has been shared. Authorization: org admin, EXCEPT a non-admin member may inspect their OWN membership’s grants (when the query’s organizationMembershipId equals the caller’s); any other subject requires admin, otherwise 403 forbidden. Query names EXACTLY ONE of organizationMembershipId or groupId. Returns the subject’s grants.

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

Authorization

  • bearerAuth
    HTTP
    required

Query parameters

  • organizationMembershipId
    optional
    string
    minLength: 1
  • groupId
    optional
    string
    minLength: 1

Returns

200

The resources and roles granted to the subject.

JSON
  • assignments
    array of
    map<unknown>
    required

    Every grant the subject holds. Shape mirrors RoleGrant plus provider extras.

400

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

403

Non-admin caller requested a subject other than their own membership

Type to search…

↑↓ navigate↵ selectEsc close