> For the complete documentation index, see [llms.txt](https://wiki.datadike.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.datadike.com/pam/administration/identities/roles.md). Agents can also search and read this documentation through its [MCP server](https://wiki.datadike.com/~gitbook/mcp).

# Roles and permissions

What a user may do inside the console, how organization roles differ from system roles, and how multi-tenancy scopes them.

## What this is and when to use it

A role decides what a person may do **inside the console** — which screens they see and which actions they may take there.

It is not an [authorization](https://wiki.datadike.com/pam/administration/access/authorizations.md), which decides which assets and accounts they may reach. An auditor may hold a powerful role and no authorization at all; that is a normal and desirable configuration.

There are two levels, and confusing them is the usual source of "why can they see that?":

| Level                 | Scope                                                                        |
| --------------------- | ---------------------------------------------------------------------------- |
| **Organization role** | Applies **only inside one organization**. Fully customizable                 |
| **System role**       | Applies across the solution — global administrator, log auditor, and similar |

A user who belongs to several organizations can hold a different organization role in each. Being *Org Admin* in Development and *Org Auditor* in Production is a normal arrangement.

## Multi-tenancy

The solution implements multi-tenancy by organization. Each organization is an isolated tenant inside a single instance.

| Property             | What it means                                                                                   |
| -------------------- | ----------------------------------------------------------------------------------------------- |
| Data isolation       | Each organization has its own users, assets, accounts, permissions, and labels, fully separated |
| Default organization | Always exists and cannot be removed. It is the instance's primary organization                  |
| Context switching    | The user switches organization from the selector at the top of the interface                    |
| Audit isolation      | An auditor of one organization sees only that organization's logs and sessions                  |
| Resource scope       | Roles, assets, and applications are restricted to the organization where they were created      |
| No sharing           | Resources are not shared between organizations                                                  |

## Built-in organization roles

![The Roles screen](https://1085357737-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7xzJyi9JVzRwnV6JzUho%2Fuploads%2Fgit-blob-9a4344f5a9264459aa6126c25d7c5a27656ac44b%2Froles.png?alt=media)

**1** How many roles exist.

Three ship with the product and cannot be edited or deleted:

| Role            | What it is for             | Main permissions                                                                              |
| --------------- | -------------------------- | --------------------------------------------------------------------------------------------- |
| **Org Admin**   | Organization administrator | Full management of users, assets, accounts, permissions, and settings inside the organization |
| **Org Auditor** | Organization auditor       | Viewing logs, sessions, recordings, and audit reports of the organization                     |
| **Org User**    | Regular user               | Access to the workbench, connecting to authorized assets, and the web terminal                |

## Permission modules

A custom organization role is built by granting permissions per module:

| Module                   | Typical permissions                                                  |
| ------------------------ | -------------------------------------------------------------------- |
| Console (Assets)         | View, create, edit, and delete the organization's assets and folders |
| Console (Users)          | View, create, and edit the organization's users and groups           |
| Console (Accounts)       | View and manage the accounts of the organization's assets            |
| Console (Authorizations) | Create and edit authorization rules                                  |
| Audit                    | View the organization's logs, sessions, and recordings               |
| Workbench (Jobs)         | Run and manage tasks in the organization                             |

## Steps — creating a custom role

1. Open **Users › Profiles › Organization roles**.
2. Click **Create**, and set the **name** and a **comment** describing what the role is for. Write the comment — six months from now it is the only record of the intent.
3. Save, then open the role's details page.
4. Under **Role information › Permissions**, tick the permissions for each module.
5. Click **Submit**.

## Assigning a role

Two ways, and they produce the same result:

* **From the user** — edit the user and set the **Organization role** field
* **From the role** — open the role's details and, under **Authorized users**, click **Add**

## How to verify it worked

1. Sign in as a user holding the role, or ask them to.
2. Confirm the console shows exactly the areas the role grants, and no others.
3. Confirm they *cannot* reach a screen the role does not grant. Testing only what should work leaves the over-permission undetected, and over-permission is the failure that matters here.

## Field reference

| Field                       | What it means                                                                  |
| --------------------------- | ------------------------------------------------------------------------------ |
| Name                        | The role's name inside the organization                                        |
| Number of users             | How many users hold it                                                         |
| Built-in                    | Whether it ships with the product and cannot be edited or deleted              |
| Comment                     | Free text describing the role's purpose                                        |
| Scope                       | The context the role applies to. For organization roles, always *Organization* |
| ID                          | Internal identifier                                                            |
| Date created / Date updated | Creation and last change                                                       |
| Creator / Last updater      | Who created it and who last changed it                                         |

## Related pages

* [Users and groups](https://wiki.datadike.com/pam/administration/identities/users-and-groups.md)
* [Authorizations](https://wiki.datadike.com/pam/administration/access/authorizations.md) — which assets, rather than which screens
* [Permission best practices](https://wiki.datadike.com/pam/administration/access/permission-best-practices.md) — how roles and authorizations fit together without excess
* [Audit trail](https://wiki.datadike.com/pam/administration/audit/audit-trail.md)
