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

# Roles & Permissions

> Manage admin roles and platform capabilities

## How Authorization Works in Runlayer

Runlayer uses two independent authorization layers:

> [card] Roles and capabilities
>
> Control who can access **platform features** — managing MCPs, viewing audit logs, creating policies, configuring settings. **This is what roles and capabilities control.**

> [card] Access policies
>
> Control what happens when users **invoke MCP tools**. Policies evaluate conditions like IP range, tool name, or OAuth status at call time. See [Policies](https://docs.runlayer.com/platform-policies.md).

| | Roles | Policies |
| - | - | - |
| **Controls** | Platform features (dashboard, API) | MCP tool invocations |
| **Configured via** | Role assignment or SCIM group-to-role mapping | Access policies |
| **Example** | "Can this user view audit logs?" | "Can this user call `query_database` on the Snowflake MCP?" |

A user needs **both**: the right role to access platform features, AND a matching policy to call MCP tools.

***

## Roles

| Role | Description |
| - | - |
| **Super Admin** | Full platform access. Manages roles, settings, and all features. |
| **Security Admin** | Monitors security, manages policies, reviews audit logs and user info. Can stop any session, which also cancels the session's running Runlayer Agents runs, whoever started them. |
| **IT Admin** | Manages connectors, policies, and user MCP access. Can stop any session, which also cancels the session's running Runlayer Agents runs, whoever started them. |
| **Analytics Admin** | Views org-wide metrics, audit logs, and exports usage data. |
| **Developer** | Deploys MCPs with the CLI without an approval step (each new deployed connector is granted to the Developer role by default), manages agent accounts, uses the management API. |
| **Helpdesk** | Views user info and audit logs for support purposes. |
| **User** | Uses assigned MCPs only. No admin features. |

> [!NOTE]
>
> Users without any admin role are assigned the **User** role by default. They can only use MCPs they have been granted access to.

***

## Capability Matrix

Each role grants a fixed set of capabilities. Super Admin has all capabilities. To see the full, up-to-date matrix, go to **Settings → Roles** in your Runlayer dashboard.

> [!NOTE]
>
> The capability matrix is updated as new features arrive. The live version in **Settings → Roles** is always the source of truth.

***

## Where to Find Key Settings

Admin configuration lives under **Settings** in the Runlayer dashboard. Which pages a user can see and change depends on their role capabilities. Quick map:

| Settings page | What it configures | Docs |
| - | - | - |
| **Settings → Users** | User accounts and role assignments | [Assigning Roles](#assigning-roles) |
| **Settings → Roles** | Live capability matrix for each role | [Capability Matrix](#capability-matrix) |
| **Settings → General** | OAuth redirect URIs, agent run limits, and workspace-level options such as showing admin setup instructions to all users | [Connectors](https://docs.runlayer.com/platform-connectors.md) |
| **Settings → Sign-in & provisioning** | Single Sign-On, directory sync (SCIM), external allowed emails, and permission attribute selectors | [SCIM Role Sync](#scim-role-sync) |
| **Settings → Agent session monitoring** | Full session scanning, hook client coverage, session privacy, compliance provider imports | [Sessions](https://docs.runlayer.com/platform-sessions.md) |
| **Settings → Policies** | Global access policies | [Policies](https://docs.runlayer.com/platform-policies.md) |
| **Settings → Security Scanners** | ToolGuard scanners, PII rules, skill risk policy, session scanning (AgentGuard) | [ToolGuard Models](https://docs.runlayer.com/runlayer-toolguard.md), [AgentGuard](https://docs.runlayer.com/agentguard.md) |
| **Settings → AI Providers** | LLM providers and recommended model for agents | [Agents](https://docs.runlayer.com/platform-agents.md) |
| **Settings → Agent Accounts** | Agent account credentials for programmatic access | [Agent Accounts](https://docs.runlayer.com/platform-agent-accounts.md) |
| **Settings → Integrations** | Slack integration, Runlayer Assistant, and the GitHub App agents use for git | [Slack Notifications](https://docs.runlayer.com/platform-slack-notifications.md), [GitHub access for agents](https://docs.runlayer.com/platform-agents-github.md) |
| **Settings → MDM configuration** | AI Watch and Runlayer CLI deployment via MDM | [Deploy AI Watch](https://docs.runlayer.com/shadow-ai/deploy.md) |
| **Settings → User mapping** | Resolve unresolved device usernames to Runlayer users | [Identity Mapping](https://docs.runlayer.com/shadow-ai/identity-mapping.md) |
| **Settings → AI client allowlist** | Manage the organization's AI client allowlist | [Detect](https://docs.runlayer.com/shadow-ai/detect.md) |
| **Settings → Personal API keys** | API keys tied to your user identity | [Management API](https://docs.runlayer.com/platform-api.md) |
| **Settings → Organization API keys** | Organization-scoped API keys (e.g. Deploy, Security Scan, Skill Sync roles) | [Management API](https://docs.runlayer.com/platform-api.md) |

***

## Separation of Duty

Certain role combinations cannot be assigned to the same user to prevent conflicts of interest:

| Forbidden combination | Reason |
| - | - |
| Security Admin + IT Admin | Separates security oversight from infrastructure management |
| Security Admin + Developer | Separates security policy control from code deployment |

If you attempt to assign a forbidden combination, the assignment will fail with an error. To resolve, remove one of the conflicting roles first.

Role separation controls platform administration. It does not automatically prevent someone who creates an agent from later being granted permission to use that agent; agent usage is controlled by agent sharing, connector policies, and MCP access policies. For high-risk agents, keep creator/admin roles narrow, share the agent to a pilot group at **Can use**, and grant only the connector tools that group needs.

***

## Assigning Roles

Use these steps when SCIM is not enabled.

**1. Navigate to Users**

Go to **Settings → Users** and select the user you want to manage.

**2. Edit Roles**

Click **Edit** next to the user's current role(s).

**3. Select Role(s)**

Choose one or more roles from the dropdown. Users can hold multiple roles — their capabilities are the union of all assigned roles.

**4. Save**

Confirm the assignment. Changes take effect immediately.

> [!WARNING]
>
> Only users with the **Manage Admins** capability (Super Admin) can assign or remove roles.

> [!NOTE]
>
> If SCIM is enabled, synced roles cannot be edited directly. A Super Admin can pin a manual role override for a user until the override is turned off. See [SCIM Role Sync](#scim-role-sync) for details.

***

## SCIM Role Sync

When SCIM is enabled, your identity provider (e.g. Okta, Azure AD, Google Workspace) becomes the source of truth for synced groups and mapped roles.

* Directory-synced groups must be updated or deleted in your identity provider. Groups created in Runlayer before directory sync was enabled remain read-only, but can be deleted from **Settings → Groups**.
* Roles are determined by the groups-to-roles mapping. To configure this, go to **Settings → Sign-in & provisioning → Manage Directory Sync** and scroll down to the "Role assignment" section.
* A Super Admin can pin a manual role for a user as an explicit override. Directory sync preserves the manual role until the override is turned off.

To use a synced group to manage team membership, see [Teams](https://docs.runlayer.com/platform-teams.md).

Note: forbidden role combinations are enforced during sync: if the IdP assigns conflicting roles (e.g. Security Admin + IT Admin), the sync skips the conflicting assignment and logs a warning.

### Changing a synced user's email or directory identity

Directory sync matches an incoming directory user to an existing Runlayer user by directory user ID, then by email. Most identity changes need no action:

* **Email changes, same directory user**: the sync updates the email in place.
* **Re-provisioned under the same email**: the sync re-links the existing **active** account to the new directory user only when it can tell it is the same person. If the account is already linked to a different directory user and sync cannot confirm the match, it refuses and leaves the account as it is (see "Sync refused the match").
* **Deactivated user rehired**: if the directory lists them as active and the sync can match the account, the sync reactivates and re-links it. If the sync refuses the match, reactivate them on the **Users** page and rebind them with the API below.

Sync never guesses across identities, so two cases need a Super Admin:

* **Email and directory user both change** (for example an email-domain migration that re-provisions every user under a new address): nothing matches, so the sync would create a new Runlayer user.
* **Sync refused the match**: the account is already linked to a different directory user, or the identity provider's user ID differs from the one on record for that email. If it is the same person (for example the identity provider re-created their account), rebind them with the API below. If it is a different person, see below.

The identity rebind API tells Runlayer "this user is now this email and/or this directory user". It keeps the user's roles, teams, policies and history on the same row; it never merges two users.

```bash theme={null}
curl -X PATCH "https://<your-runlayer-host>/api/v1/users/<user_id>/identity" \
  -H "x-runlayer-api-key: <super-admin-api-key>" \
  -H "Content-Type: application/json" \
  -d '{"email": "jane@new-domain.com", "workos_directory_user_id": "directory_user_01ABC..."}'
```

Both fields are optional, but at least one is required. The request is refused when:

* The email or directory user ID already belongs to another Runlayer user (in any organization). Deactivate or fix that user first; rows are never merged.
* The directory user ID is not a user of your organization's WorkOS directory (unknown ID, another directory, or your organization has no directory).
* The user is deactivated. Reactivate them first.
* Your directory lists the directory user as inactive. Reactivate them in your identity provider first.
* In a directory-synced organization, the email is on the **Settings → Sign-in & provisioning** external allowed emails list and the new one is not, and the user has no directory user ID. Add the new address to the list or bind a directory user ID in the same request.
* The directory user is not listed in your directory under the user's email (after the move). Send the new email in the same request when both change.

A rebind says the user before and after is the same person. It revokes nothing: API keys, device keys, agent delegations, connector grants and sign-in sessions stay with the user. Changing the directory user ID drops the stale sign-in binding so the re-provisioned identity attaches on its next sign-in; changing only the email keeps it.

To give an address to a **different** person, do not rebind. Move the current user's email to another address, then deactivate them: deactivation revokes their device keys and identity-provider links and blocks everything else they hold (API keys, agent delegations, connector grants, sessions) for as long as they stay inactive. The directory then provisions the new person as a new user.

Every rebind is recorded in the audit log (`user_identity_rebound`) with the previous and new values. Run the rebind before the user's next sign-in with the new identity; the next directory sync then updates the row in place.

***

## Migration from Admin to Super Admin

Previously, Runlayer had a single **Admin** role with full permissions. This has been replaced by **Super Admin** and several specialized roles.

**What changed:**

* All existing Admin users have been automatically migrated to **Super Admin**
* No permissions changed — Super Admin has the same capabilities as the old Admin role
* No action is required from your side

**Recommended next step:** Review your Super Admin users and consider whether a narrower role (Security Admin, IT Admin, etc.) would be more appropriate. Specialized roles reduce blast radius if an account is compromised.

***

## Best Practices

> [accordion] Start with the narrowest role
>
> Assign the most specific role that covers the user's responsibilities. You can always add more roles later. A security analyst likely needs Security Admin, not Super Admin.

> [accordion] Prefer specialized roles over Super Admin
>
> Super Admin should be limited to a small number of trusted users. Most admin tasks are covered by Security Admin, IT Admin, or other specialized roles.

> [accordion] Review role assignments quarterly
>
> People change teams. Remove roles that are no longer needed. Check that separation of duty rules are still appropriate.

> [accordion] Respect separation of duty
>
> The forbidden role combinations exist for good reason. If someone needs capabilities from both Security Admin and IT Admin, consider whether the tasks can be split between two people instead.

***

## Related Documentation

> [card] [Policies](https://docs.runlayer.com/platform-policies.md)
>
> Configure access policies for MCP tool access


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