younifyd
Menu

Check User Permissions

Check if current user has specified permissions

GET/v2025-07-11/access/{resourceType}/{resourceId}/user-permissions/me/check

Use it in a workflow

  1. Add a step and choose the Sanity connector.
  2. Pick the Check User Permissions action (under Access).
  3. Fill in the fields below, then reference the result from later steps as {{checkUserPermissions.response.data}}.

Request

Path parameters

resourceTypestringrequired

The resource type to scope the access requests to.

One oforganizationprojectmedia-librarycanvasdashboardviewknowledge-base

resourceIdstringrequired

The resource ID to scope the access request to. Must be a valid ID for the resource type.

Query parameters

permissionsarray<string>required

An array of permissions to check

Response

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

dataobject
json
{
  "data": {
    "sanity.project.members.read": true,
    "sanity.project.members.invite": false
  }
}

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