younifyd
Menu

Delete Role Assignment

Delete a role from a user

DELETE/projects/{projectId}/acl/{projectUserId}

Use it in a workflow

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

Request

Path parameters

projectIdstringrequired

The ID of the project

projectUserIdstringrequired

The project user ID, which starts with `p`

Request body

Enter the body as JSON in the step's Body field.

roleNamestring

The name of the role to remove. Omit it to remove all of the user's roles.

json
{
  "roleName": "editor"
}

Response

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

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

Delete Role Assignment — Sanity — Documentation