Skip to main content

removeUserPermission

Requires permission settings:permission:update.

Removes a direct permission grant from a user. Returns true on success. Needs settings:permission:update.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation RemoveUserPermission($input: RemoveUserPermissionInput!) {
removeUserPermission(input: $input)
}

Variables:

{
"input": {
"permissionId": "id",
"userId": "id"
}
}

Response:

{
"data": {
"removeUserPermission": true
}
}
removeUserPermission(
input: RemoveUserPermissionInput!
): Boolean!

Arguments​

removeUserPermission.input ● RemoveUserPermissionInput! non-null input​

The user and the permission to remove.

Type​

Boolean scalar​

The Boolean scalar type represents true or false.