> ## 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.

# Permission

> Describes something a user is allowed to do in a tenant, such as `read:sources`. Users get permissions through their roles or directly.



**Kind**: `object`

## Fields

**`description`**: `String!`

What the permission allows.

---

**`id`**: `String!`

Raw id of the permission. Mutations take `key` instead.

---

**`key`**: `String!`

Key of the permission (e.g. `read:sources`, `write:users`). Keys of the form `<app>:read:app` (e.g. `studio:read:app`) give access to an Occtoo app and are the only ones you can grant directly.

---

**`name`**: `String!`

Readable name of the permission.

---

**`roles`**: `[Role!]!`

Roles that give the user this permission; only their `id` and `key` are filled. Empty when the permission is granted directly (see `updateUserPermissions`).



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