Why Rocket.Chat custom roles and least-privilege permissions matter before go-live
Design Rocket.Chat roles around job duty before users arrive, because the default admin, moderator and user roles are usually broader than any single team needs. Rocket.Chat's security guidelines recommend assigning roles by job duty, limiting admin access to trusted personnel and auditing user roles regularly. A regulated team should treat that as a go-live gate: every administrative permission granted at launch becomes a permission someone must later justify, and a broad role assigned to a group of users is hard to narrow once people depend on it. Start with a short inventory of who needs to administer the workspace, who moderates channels, who reads records for oversight and who owns integrations, then map each group to the smallest set of permissions it needs. Keep the admin role small and named, and document the reason for every holder.
Custom roles become necessary when the default roles cannot separate those duties. Typical cases include an auditor who can review retained messages and user activity without posting or changing settings, a moderator who manages specific rooms but cannot alter workspace configuration, and an integration owner who manages bots or applications without holding general administration rights. Each case depends on permission names that vary between Rocket.Chat versions, so confirm the exact permission list in your release before writing role definitions. Also confirm which custom role and permission features your plan includes, since some governance capabilities are paid-plan features, and check the plan comparison in the Rocket.Chat plans documentation before you design around them.
Schedule a role review as part of go-live, not as a later clean-up task. Record each role, its permissions, its holders and the approver, then repeat the review on a fixed cadence and whenever staff change teams. Token and integration permissions deserve particular attention: from Rocket.Chat 8.7.0, creating a user access token through users.createToken requires the user-generate-access-token permission, so a role that can mint tokens is effectively a credential-issuing role. Ask your Rocket.Chat contact or check the release notes to confirm how your target version handles this permission before you assign it.
Global roles versus room-scoped roles
A global role grants its permissions across the entire workspace. A user holding a global permission can perform that action in any channel, private group or direct message the permission covers, without being a member of the room. Administrative capabilities such as managing users, changing workspace settings and viewing the administration console are global by nature, because they do not belong to any one conversation. Assign global roles sparingly, since each one widens the blast radius of a compromised or careless account.
- Administrative functions: Settings, user management and workspace configuration apply to the whole installation and should sit with a small trusted group.
- Cross-room visibility: Permissions such as viewing other rooms or direct messages apply everywhere, so they carry the highest exposure.
- Illustrative example: An auditor who must review message retention across all departments needs a global read permission, because no single room covers that scope.
- Inherited reach: A global permission keeps working in rooms created later, which is convenient for administrators and risky for narrowly scoped staff.
- Confirm in your version: Check the administration permission list in your release to see which items are global.
Before granting any global permission, confirm which rooms it reaches and whether a room-scoped alternative would cover the same job.
A room-scoped role applies only inside a specific channel or private group. Rocket.Chat assigns these roles per room, so a user can moderate one team's channel without any power in the rest of the workspace. This is the usual way to give a team lead or channel owner control over their own space. The scope follows the room membership, so the permission ends when the user leaves the room or is removed from it.
- Channel moderation: Moderators can manage messages and members in the rooms they are assigned to, without touching other conversations.
- Team ownership: Room owners handle membership and settings for their own channel, which keeps day-to-day decisions close to the people who know the work.
- Illustrative example: A release manager is made moderator of a single incident channel during an outage and loses the role when the channel is archived or they leave it.
- Membership dependency: Because the scope is tied to membership, removing someone from a room also removes their room-level power there.
- Confirm in your version: Verify which room-level roles exist and what each one allows in your release, since the list changes between versions.
Review room roles along with channel ownership, because stale owners and moderators are a common source of unneeded access.
The decision is usually straightforward once you ask whether the job touches one conversation or the whole workspace. Default to room scope for anything that is about content or members in a particular room, and reserve global scope for work that genuinely spans the workspace. Where a job seems to need a global permission only for one team, test whether a room-level role or a small custom role would meet the requirement first.
- Start with the room: If the task is moderating, pinning or managing one channel, a room-scoped role is the first option to test.
- Escalate deliberately: Move to a global permission only when the work crosses rooms, such as workspace-wide compliance review.
- Record the reason: Document why each global grant exists so that periodic reviews can challenge it.
- Separate duties: Keep administration of users and settings apart from content moderation where your model requires it.
- Confirm the boundary: Test with a non-admin account in a sample room to confirm what the role actually reaches.
Use a test workspace to check each role's behavior before assigning it in production.
Permission scope is easy to misread from the role name alone, so verification matters more than design intent. A short test with dedicated accounts shows whether a role reaches rooms it should not, and whether removing a membership removes the access you expect. Run these checks on the exact Rocket.Chat version you operate, because permission lists and their scopes can change between releases.
- Build test accounts: Create one user per role and place each in a single sample room to observe the reach of each assignment.
- Check private rooms: Confirm whether a global permission exposes private groups and direct messages, which are often the most sensitive.
- Test removal: Remove a user from a room or revoke a global role and confirm access ends immediately.
- Log the results: Keep a dated record of what each role can do so that later upgrades can be compared against it.
- Confirm with vendor documentation: Check the current permission reference for your version and note any differences from this guidance.
Repeat these tests after every major upgrade, since a changed default can widen access without any configuration change on your side.
Which role design fits which team
This table compares four ways to shape Rocket.Chat roles: default roles only, a custom auditor role, a room-scoped moderator role, and a dedicated token or integration owner role. Read each row as a decision: when the option fits, what it risks, and what to confirm in your own workspace before you adopt it.
| Role design | When it fits | What it risks | What to confirm before adoption |
|---|---|---|---|
| Default roles only | Small teams where a few trusted administrators run the workspace and most members need no special rights | Administrators hold broad rights by default, so a compromised or careless admin account affects the whole workspace | Which people hold admin, and whether admin access is limited to trusted personnel as Rocket.Chat's security guidelines recommend |
| Custom auditor role | Compliance or security staff who need to review users, rooms and activity without changing content or settings | A role granted too many view permissions can expose message content or user data beyond what an auditor needs | Which read-only permissions the role needs, whether it can reach message content, and how its use is logged in your audit trail |
| Room-scoped moderator role | Channel owners who manage membership and messages in specific rooms, such as a support or project channel | Moderators with global rights can act across the workspace, and room-level grants are easy to forget when people change teams | Whether the moderator permission is granted per room or globally in your Rocket.Chat version, and who reviews those grants each quarter |
| Dedicated token or integration owner role | Teams that run bots, integrations or personal access tokens and need one accountable owner for them | Token creation and integration permissions can let a single account act as a system, so a leaked token gives broad access | Which permissions the owner role needs, and whether your version requires the user-generate-access-token permission to create tokens, which Rocket.Chat 8.7.0 introduced |
Permissions that matter most for integrations and tokens
Most role reviews focus on who can administer the workspace, but the permissions that widen risk most are the ones that let an account act on behalf of others, such as creating tokens or connecting external systems. The cards below cover the permissions to review first and the checks that keep them narrow.
Admin-level permissions
Workspace-wide administration rights, such as managing settings, users and roles, sit at the top of the risk ladder. Any account holding them can change authentication, retention and integration settings for every room. Keep these with a small, named group tied to job duties, and confirm that no broad custom role quietly includes them. Review the list of holders on a fixed schedule and after every staffing change.
Security guidelinesIntegration and webhook management
Permissions for creating and editing integrations let a role add incoming and outgoing webhooks that post or receive message content outside the workspace. A misconfigured outgoing integration can forward conversations to an external endpoint. Check which roles can manage integrations, who owns each one, and whether each integration still has a live business purpose. Treat integration permissions as data-sharing decisions, not convenience settings.
User-generate-access-token permission
From Rocket.Chat 8.7.0, the users.createToken API requires the user-generate-access-token permission. Before that version, the token-creation behavior was not gated by this permission, so a team upgrading across 8.7.0 should review which roles hold it after the change. A personal access token acts with that user's rights, so grant the permission only to roles with a documented need for programmatic access.
Release notesDeliberate token grants
A token-creating permission should be granted on purpose, with an owner, a stated use case and a removal date for each account that holds it. Tokens outlive the session that created them, so a role change does not automatically revoke access that was issued earlier. Ask who can create tokens, which service accounts depend on them, and how tokens are rotated when someone leaves. Record these answers before the permission is assigned.
Upgrade-driven behavior changes
Permission behavior changes between releases, so a role that worked on one line may need an extra grant after an upgrade. Read the release notes for each target version before moving production, and test token creation, integration management and admin actions in a staging copy with roles mirrored from production. Plan the upgrade window with the security owner so role changes are reviewed alongside the version change.
Service accounts behind integrations
Bots and integration users often hold broader rights than the people who use them, because they were set up once and never narrowed. Give each service account its own identity, the smallest role that performs its task, and a named human owner. Review these accounts with the same cadence as staff roles, since a compromised service account with token rights can reach the same data as an administrator.
How to build and roll out a least-privilege role model
This sequence moves Rocket.Chat from default roles to a documented set of custom roles, each tied to a real job duty and tested before wide assignment. The result is a role model you can explain to an auditor and review on a schedule.
Inventory job duties and current administrators
Start by listing every person who holds an admin or elevated role in the workspace, then ask the owning manager what each person actually does. Pull the current role assignments from the administration console and record which users hold global roles such as admin, and which hold room-level moderator or owner roles. Include service accounts, integration owners and people who create personal access tokens, since these are easy to miss. The step is done when every elevated assignment has a named owner and a stated business reason.
Map each duty to the smallest permission set
For each job duty, write the tasks it requires and select only the permissions needed to perform them. Group the results into a short list of candidate roles, such as a compliance auditor who reads audit data, a channel moderator who manages members in specific rooms, or an integration operator who manages webhooks without user administration. Review the permission names against the current Rocket.Chat version in your environment, because permission sets change between releases. Check that every mapping has a one-line justification that the duty owner has confirmed.
Create custom roles with global or room scope
In the administration console, create each custom role and set its scope. Use global roles for permissions that apply across the workspace, and assign room-scoped roles where access should be limited to particular channels or groups. Note that the role model must reflect how Rocket.Chat applies each scope, so confirm the scope behavior for each permission in the vendor documentation before finalizing. Record the role name, description, permissions and scope in a change log. The step is complete when each role exists, has a description and appears in the log with its approver.
Assign roles through the console or identity sync
Assign each role to the users identified in the inventory, either manually in the administration console or through the identity provider mapping your deployment uses. Manual assignment suits small teams and one-off exceptions, while group-based mapping suits larger populations where joiners and leavers should change access automatically. Confirm which mapping features your plan includes before relying on them. Remove elevated roles from people who no longer need them as part of the same change. The check is a fresh export of role assignments that matches the approved inventory.
Test with a non-admin test account
Create a standard test user that holds only the new custom role, and sign in with it from the web client and, where used, a desktop or mobile client. Attempt each task the role should allow, then attempt the tasks it should deny, such as changing global settings, creating tokens for other users or reading rooms outside its scope. Record each result as pass or fail. Failures mean the role either lacks a needed permission or grants one it should not, so return to the mapping step and adjust. The step is complete when every allowed and denied action produces the expected result.
Check token and integration permissions separately
Permissions that control integrations and access tokens need their own test pass, because they can give a role more reach than its name suggests. From Rocket.Chat 8.7.0, creating a token through the users.createToken method requires the user-generate-access-token permission, so confirm that only the intended roles hold it. Review which roles can manage integrations, webhooks and apps, and test that an integration operator cannot change user accounts. Document each sensitive permission with its owner. The check is a written list of token and integration permissions with the roles that hold them.
Document the model and schedule role reviews
Write a role register that lists each custom role, its permissions, its scope, its owner, the test results and the approval date. Store it with your other security records and make it accessible to the people who run audits. Rocket.Chat's security guidelines recommend assigning roles by job duty, limiting admin access to trusted personnel and auditing user roles regularly, so set a recurring review and assign a named reviewer. The step is done when the register is published, the review owner is named, and the first review date is on the calendar.
How roles, rooms and integrations fit together
The diagram starts with a person or integration account, which receives global roles that apply across the workspace and room-scoped roles that apply only inside one channel or group. Each role grants a set of permissions, and the permissions that matter most are those that let an account create tokens, manage users or read private content. The periodic review loop at the end compares what each account holds against its job duty and removes what is no longer needed. Check that integration accounts have no more permissions than their function requires.
Accounts receive global and room-scoped roles, which grant permissions that a periodic review checks.
How often to review Rocket.Chat roles and who signs off
Rocket.Chat's security guidelines recommend auditing user roles regularly, and a role model only stays least-privilege if someone checks it after go-live. Permissions drift: people change jobs, contractors leave, integrations get rebuilt, and identity sync adds or removes group memberships without anyone reviewing the result. Set the review frequency against your own access control policy and the internal audit or compliance requirements that apply to your organization, and record that frequency in the policy itself rather than in an administrator's memory. Confirm with your compliance lead whether any framework you are preparing for expects a specific review interval and evidence of each review.
A review should check four things. First, the admin and moderator lists: every account holding administrative permissions should still need them, and the number of accounts with broad global roles should be small enough that each one has a named owner. Second, token-capable accounts: from Rocket.Chat 8.7.0, creating personal access tokens through users.createToken requires the user-generate-access-token permission, so confirm which roles hold it and which accounts actually use tokens. Third, stale integration owners: each incoming or outgoing integration, bot and service account should map to a current employee or team, and orphaned ones should be disabled or reassigned. Fourth, role drift from identity sync: compare roles assigned by LDAP or SAML mappings against what the identity provider's groups say today.
Ownership should sit with the team that owns the identity lifecycle, usually IAM or the security team, with the Rocket.Chat workspace owner or platform administrator preparing the export and making the changes. Business owners of channels and integrations should attest to their own entries, and an independent reviewer outside the administrator group should sign off on admin and token findings. Keep the sign-off record with the change tickets so the review itself is auditable. Before the first review, ask your Rocket.Chat partner or internal team to confirm how the export of roles and users can be produced in your version, since the available reports depend on the release you run.
Security and operational risks in role design
Role design fails in predictable ways: roles grow broader than the job requires, shared accounts erase accountability, and identity sync quietly changes who holds access. Each card below names a risk in Rocket.Chat custom roles and least-privilege permissions and the control that reduces it.
Overly broad admin roles
Granting the admin role for convenience gives one account control over settings, users and rooms well beyond a single job. Rocket.Chat's security guidelines recommend assigning roles by job duty and limiting admin access to trusted personnel. Control: build narrow custom roles for each duty and reserve the built-in admin role for a short named list. Check which permissions each custom role carries before assigning it.
Security guidelinesShared admin accounts
When several people sign in with one administrator login, audit trails cannot show who changed a permission, deleted a room or exported data. Shared credentials also survive staff departures because nobody owns them. Control: give each administrator a personal account and a separate, lower-privilege account for daily messaging. Confirm that your audit logging records the acting user for administrative actions on your plan.
Role drift from identity sync
When roles or group memberships are synced from an identity provider, a change in a directory group can grant or remove Rocket.Chat permissions without anyone reviewing the result. Access can grow over time as people move teams and old groups are never removed. Control: map only the directory groups that represent approved Rocket.Chat roles, and review the mapping on a fixed schedule. Test group searches before go-live.
Token permissions held by non-admins
Personal access tokens let a script or integration act as a user, so a permission to create tokens is effectively a permission to act as others. From Rocket.Chat 8.7.0, creating tokens through the users.createToken method requires the user-generate-access-token permission. Control: withhold that permission from roles that do not need it and list every holder during each review. Confirm which roles in your version carry it before rollout.
Release notesIntegrations running with broad rights
Integrations and bots inherit the permissions of the user or role they run under. A bot created with administrative rights for a simple notification task turns any compromise of that bot into a compromise of the workspace. Control: run each integration under a dedicated service user with only the permissions its task needs. Document the owner and purpose of every integration user so it can be removed when the integration is retired.
Roles that never get reviewed
Permissions accumulate through promotions, temporary projects and product updates that add new settings, and nobody removes them. Each review should compare current holders against job duties and check whether new permissions were added to existing roles in an upgrade. Control: schedule recurring role audits with a named owner who signs off on each role and its members. Record removals as well as grants so the review trail is complete.
Questions teams ask before designing Rocket.Chat roles
Can our own team design Rocket.Chat roles without a partner?
Yes, a team with Rocket.Chat administration experience and a clear picture of its own duties can design roles in-house. The work is mostly inventory and decisions: which job functions exist, which Rocket.Chat permissions each function needs, and which rooms those people must reach. Rocket.Chat's security guidelines recommend assigning roles by job duty, limiting admin access to trusted personnel and auditing user roles regularly, so the design is a process your team can run. The harder part is testing that each custom role does what you intended without granting extra access. Check that your team has at least one administrator who can reproduce a role's permissions in a test workspace before changing production.
What does the role design work need from our team?
It needs three things before design starts. First, a role inventory: every current role, every person holding admin or elevated access, and the job duty behind each. Second, named admin owners who can approve changes and who will be accountable for reviews afterward. Third, test accounts in a non-production workspace, one per intended role, so each permission set can be verified by logging in as that user. Your team should also list the identity groups that map to Rocket.Chat roles, and the compliance owner who will say whether the auditor role meets recordkeeping needs. Without these inputs, the design tends to stall at the question of who should be allowed to do what.
What makes the effort for role design grow?
The main drivers are the number of rooms, the number of integrations and tokens, the number of identity groups, and the compliance scope. Many private rooms with different membership rules mean more room-scoped roles to define and more exceptions to explain. Each integration or personal access token that uses an admin-level permission adds a line to review, and Rocket.Chat 8.7.0 and later require the user-generate-access-token permission for users.createToken, which changes who can issue tokens. Large identity directories raise the cost of mapping groups to roles and testing edge cases. Regulated scope adds evidence work: documenting who holds each role, why, and how it was reviewed. Ask any provider to break the quote down along these drivers so you can see which ones your environment triggers.
How long does it take to set up a periodic role review cycle?
Setup time depends on the size of your role inventory and how many approvers must sign off, so it is not fixed. Setting up the cycle has a one-time cost: writing the review checklist, defining the owner for each role, and running a first full review to clear stale accounts and excess permissions. After that, the recurring cost is the review itself, which scales with the number of roles, admins and integrations. Rocket.Chat's guidance to audit user roles regularly does not set an interval, so choose one that matches your risk and any policy you must follow, and confirm the cadence with your compliance team. Ask for the review schedule and the evidence each review produces in the written scope.
Which Rocket.Chat permissions matter most for integrations and tokens?
Focus on the permissions that let a principal act across the workspace rather than inside one room. These include permissions that create or manage users, change server settings, or read data across rooms, and the user-generate-access-token permission that controls who can create API tokens for users. Integrations often run under a bot or service account, so the role on that account should be as narrow as the integration needs. Review each integration's account, its token holder and its target rooms together. Confirm the exact permission names and their effect in your Rocket.Chat version, because permission sets change between releases.
What does a partner deliver for least-privilege role design?
A partner delivers what is written in the agreed scope before work starts. For this topic that typically means a role inventory and gap analysis, a proposed set of global and room-scoped custom roles with the reasoning for each permission, test results from accounts in a non-production workspace, a documented review process with owners and cadence, and handover notes for your administrators. Where your compliance program needs evidence, DeployOpen prepares the systems, controls and records an auditor can examine, but it does not issue audit reports or certifications. Ask for the deliverables list, the test method and the handover format in the written scope, along with what remains your responsibility after handover.
Do we need a separate auditor role, and what should it allow?
Often yes, because auditors usually need to read records without changing configuration, messages or user accounts. The right answer depends on your recordkeeping obligations and on what your compliance team must review, such as audit trails or retained messages. Design the auditor role to read only the data it needs, and test that it cannot edit settings, delete content or manage users. Keep its membership small, document who holds it, and include it in every periodic review. Confirm with your compliance owner which records the role must reach before you grant it.
How DeployOpen scopes and supports Rocket.Chat role design
DeployOpen starts role design with a written scope agreed before any work begins. The scope names the Rocket.Chat version and deployment in use, the identity provider that supplies users, the teams whose duties define roles, and the decisions the client needs to make, such as which administrative powers stay with the internal team. Most engagements are fixed-scope, so deliverables, the review method and the test evidence are settled in writing up front. A quote follows from that scope, which is why the first conversation focuses on who needs which powers and why.
Next, DeployOpen reviews the current setup in the client's own environment. That covers the global roles assigned to each account, custom roles already created, room-level permissions, the users holding administrative rights, and the personal access tokens in use. Token review matters because, from Rocket.Chat 8.7.0, users.createToken requires the user-generate-access-token permission, so an integration owner's token scope depends on a permission that many teams never audited. The review confirms which settings and roles match job duties, as the Rocket.Chat security guidelines recommend, and which ones grew by default.
DeployOpen then builds the role model in the client's Rocket.Chat instance and tests it with test accounts that represent each role, including an auditor and a moderator, to confirm that each role can do its job and nothing more. The client receives the role definitions, the assignment rules, the test results and the changes made, and decides which findings to accept. Periodic role reviews can run under a retainer, where DeployOpen repeats the access review and token check on a schedule the client agrees. The client should confirm with DeployOpen whether a review includes changes or only findings, and who approves role changes afterward.

