> ## Documentation Index
> Fetch the complete documentation index at: https://docs.occtoo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# updateUserPermissions

> Grants and revokes permissions held directly by the user in the current tenant, independent of roles.
Used for app access (`studio:read:app`, `enrichment:read:app`). Idempotent.



**mutation** `updateUserPermissions(input: UpdateUserPermissionsInput!): UpdateUserPermissionsPayload!`

## Arguments

**`input`**: `UpdateUserPermissionsInput!` (required)

## Returns

`UpdateUserPermissionsPayload!`

**`empty`**: `Empty`

---

**`errors`**: `[UpdateUserPermissionsError!]`

## Examples

```graphql Mutation
mutation UpdateUserPermissions($input: UpdateUserPermissionsInput!) {
  updateUserPermissions(input: $input) {
    empty {
      value
    }
    errors {
      __typename
      ... on GraphQlError {
        code
        details {
          __typename
        }
        message
      }
    }
  }
}
```

```json Variables
{
  "input": {
    "id": "id"
  }
}
```

```json Response
{
  "data": {
    "updateUserPermissions": {
      "empty": {
        "value": 1
      },
      "errors": [
        {
          "__typename": "GraphQlError",
          "code": "string",
          "details": [
            {
              "__typename": "KeyValuePairOfStringAndString"
            }
          ],
          "message": "string"
        }
      ]
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.