2026-09-08 12:34:00 -04:00
---
2026-09-29 20:13:02 -04:00
title : Groups and roles
2026-09-08 12:34:00 -04:00
---
2024-10-05 08:52:04 -07:00
2026-10-16 17:58:18 -04:00
Groups and roles can be manually assigned in Coder.
For production deployments, these can also be [managed and synced by the identity provider ](./idp-sync.md ).
2024-10-05 08:52:04 -07:00
## Groups
2026-08-06 12:13:12 -06:00
> [!NOTE]
2026-10-16 17:58:18 -04:00
> Groups require a [Premium license](https://coder.com/pricing#compare-plans).
2026-08-06 12:13:12 -06:00
> For more details, [contact your account team](https://coder.com/contact).
2026-10-16 17:58:18 -04:00
Groups are logical segmentations of users in Coder and can be used to control which templates developers can use.
For example:
2024-10-05 08:52:04 -07:00
- Users within the `devops` group can access the `AWS-VM` template
2026-10-16 17:58:18 -04:00
- Users within the `data-science` group can access the `Jupyter-Kubernetes` template
2024-10-05 08:52:04 -07:00
## Roles
Roles determine which actions users can take within the platform.
2026-09-22 14:17:00 -04:00
The roles in the following table apply across the whole deployment.
Organizations have their own roles.
Refer to [Organization roles ](#organization-roles ) for more information.
2024-10-05 08:52:04 -07:00
2026-10-21 10:28:45 -07:00
| Permission | Auditor | User Admin | Template Admin | Owner |
2026-09-24 13:51:38 -04:00
|--------------------------------------------------------------------------|---------|------------|----------------|-------|
| Add and remove Users | | ✅ | | ✅ |
| Manage groups (premium) | | ✅ | | ✅ |
| Change User roles | | | | ✅ |
| Manage **ALL** Templates | | | ✅ | ✅ |
| View **ALL** Workspaces | | | ✅ | ✅ |
| Update and delete **ALL** Workspaces | | | | ✅ |
| Run [external provisioners ](../../install/operate/provisioners/index.md ) | | | ✅ | ✅ |
| Execute and use **ALL** Workspaces | | | | ✅ |
| View all user operation [Audit Logs ](../security/audit-logs.md ) | ✅ | | | ✅ |
2024-10-05 08:52:04 -07:00
2026-11-06 17:17:35 -05:00
A user can have one or more roles.
2026-09-22 14:17:00 -04:00
Every user also holds an implicit Member role that covers their own account, such as reading their profile and managing their tokens.
2024-10-05 08:52:04 -07:00
2026-09-22 14:17:00 -04:00
The Member role doesn't grant workspace access on its own.
The ability to create and use workspaces comes from the organization's default member roles, which include Organization Workspace Access by default.
Refer to [Default member roles ](./organizations.md#default-member-roles ) for how to remove workspace operations from the default member set.
2026-08-03 16:56:56 -04:00
2026-09-22 14:17:00 -04:00
The preceding table describes a default deployment.
A deployment that sets `CODER_DISABLE_OWNER_WORKSPACE_ACCESS` removes the Owner role's SSH, application, and terminal access to other users' workspaces.
Owners keep that access to workspaces they own.
2026-09-28 15:44:10 -04:00
Refer to [`--disable-owner-workspace-access` ](../../reference/cli/server/index.md#--disable-owner-workspace-access ) for the flag, environment variable, and YAML forms.
2026-09-22 14:17:00 -04:00
## Organization roles
Organization roles apply inside a single [organization ](./organizations.md ) rather than across the deployment.
A user who belongs to more than one organization can hold different organization roles in each one.
Assign organization roles from **Admin settings** > **Organizations** > **Members** , or sync them from your identity provider with [IdP sync ](./idp-sync.md ).
Coder ships the following organization roles:
2026-10-16 17:58:18 -04:00
- **Organization Admin**:
manages the organization's templates, provisioners, groups, members, and organization role assignments.
- **Organization User Admin**:
manages the organization's members, groups, and role assignments, including its IdP sync settings.
- **Organization Template Admin**:
manages the organization's templates and provisioners, and reads its workspaces.
- **Organization Auditor**:
reads the organization's audit logs and connection logs, along with the resources those logs reference.
- **Organization Workspace Access**:
creates and operates the user's own workspaces in the organization.
- **Organization Workspace Creation Ban**:
blocks creating and deleting workspaces in the organization, and overrides any role that would otherwise allow it.
- **Coder Agents User**:
2026-11-04 17:15:42 -05:00
uses [Coder Agents ](../../coder-agents/index.md ) in the organization.
2026-10-16 17:58:18 -04:00
Members other than service accounts hold this role through the organization's [default member roles ](./organizations.md#default-member-roles ) unless an administrator removes it.
2026-09-22 14:17:00 -04:00
Organization Admin doesn't include SSH, application, or terminal access to workspaces other members own.
A user with that role can read, build, stop, and delete those workspaces.
2026-11-04 17:41:22 -05:00
Connecting to one requires access granted through [workspace sharing ](../../workspaces/shared-workspaces.md ).
2026-09-22 14:17:00 -04:00
Every member of an organization also holds an implicit organization membership role that the dashboard doesn't display.
That role carries the smallest permission set a member needs, such as reading the organization and their own membership record.
Service accounts hold an equivalent implicit role.
## Custom roles
2024-12-17 13:20:01 -05:00
2025-03-10 15:58:20 -05:00
> [!NOTE]
> Custom roles are a Premium feature.
> [Learn more](https://coder.com/pricing#compare-plans).
2024-10-29 20:58:26 -05:00
2026-10-16 17:58:18 -04:00
Starting in v2.16.0, Premium Coder deployments can configure custom roles on the [Organization ](./organizations.md ) level.
You can create and assign custom roles in the dashboard under **Organizations** -> **My Organization** -> **Roles** .
2024-10-29 20:58:26 -05:00

2024-10-30 11:41:52 -05:00
### Example roles
2026-10-16 17:58:18 -04:00
- The `Banking Compliance Auditor` custom role cannot create workspaces, but can read template source code and view audit logs
- The `Organization Lead` role can access user workspaces for troubleshooting purposes, but cannot edit templates
- The `Platform Member` role cannot edit or create workspaces as they are created via a third-party system
2024-10-30 11:41:52 -05:00
2026-10-16 17:58:18 -04:00
Custom roles can also be applied to [headless user accounts ](./headless-auth.md ):
2024-10-30 11:41:52 -05:00
2026-10-16 17:58:18 -04:00
- A `Health Check` role can view deployment status but cannot create workspaces, manage templates, or view users
- A `CI` role can update manage templates but cannot create workspaces or view users
2024-10-30 11:41:52 -05:00
2026-09-28 13:40:07 -04:00
<a id="creating-custom-roles"></a>
### Create custom roles
2024-10-30 11:41:52 -05:00
2026-08-27 12:24:06 -04:00
Selecting "Create custom role" opens a UI to select the desired permissions for a given persona.
2024-10-29 20:58:26 -05:00

2026-10-16 17:58:18 -04:00
From there, you can assign the custom role to any user in the organization under the **Users** settings in the dashboard.
2024-10-29 20:58:26 -05:00

2026-10-16 17:58:18 -04:00
Note that these permissions only apply to the scope of an [organization ](./organizations.md ), not across the deployment.
2024-10-29 20:58:26 -05:00
2024-10-05 08:52:04 -07:00
### Security notes
2026-10-16 17:58:18 -04:00
A malicious Template Admin could write a template that executes commands on the host (or `coder server` container), which potentially escalates their privileges or shuts down the control plane.
To avoid this, run [external provisioners ](../../install/operate/provisioners/index.md ).
2024-10-05 08:52:04 -07:00
2026-10-16 17:58:18 -04:00
In low-trust environments, we do not recommend giving users direct access to edit templates.
2026-11-04 17:15:42 -05:00
Instead, use [continuous integration and continuous delivery (CI/CD) pipelines to update templates ](../../templates/managing-templates/change-management.md ) with proper security scans and code reviews in place.