younifyd
Menu

Get Organization Role Assignment

Get the roles of a single organization member

GET/organizations/{organizationId}/acl/{sanityUserId}

Use it in a workflow

  1. Add a step and choose the Sanity connector.
  2. Pick the Get Organization Role Assignment action (under Roles).
  3. Fill in the fields below, then reference the result from later steps as {{getOrganizationRoleAssignment.response.data}}.

Request

Path parameters

organizationIdstringrequired

The ID of the organization

sanityUserIdstringrequired

The Sanity user ID, which starts with `g`

Response

Returns 200 with an object. Read it in later steps with {{getOrganizationRoleAssignment.response.data.<field>}}.

sanityUserIdstring

The Sanity user ID

rolesarray<object>
namestring

The role name

titlestring

The role title

json
{
  "sanityUserId": "g...",
  "roles": [
    {
      "name": "administrator",
      "title": "Administrator"
    }
  ]
}

Need more? See the Sanity guide for connection setup and behaviour shared by every action.