Menu
Add Role Assignment
Add a role to a user
PUT
/projects/{projectId}/acl/{projectUserId}Use it in a workflow
- Add a step and choose the Sanity connector.
- Pick the Add Role Assignment action (under Roles).
- Fill in the fields below, then reference the result from later steps as
{{addRoleAssignment.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"roleName": "editor",
"roleNames": [
"editor",
"translator"
],
"deleteExistingRoles": false
}
Response
Returns 201 with a any. Read it in later steps with {{addRoleAssignment.response.data.<field>}}.
Need more? See the Sanity guide for connection setup and behaviour shared by every action.
Was this page helpful?