Attribute-Based Access Control (ABAC) enables fine-grained authorization by evaluating user attributes, directory data, and room properties when determining access.
This guide walks through configuring ABAC in your Rocket.Chat workspace, from enabling the feature to selecting a Policy Decision Point (PDP), enforcing ABAC across all workspace rooms, configuring classification banners, syncing LDAP attributes, and optionally connecting an external Virtru PDP.
Prerequisites
Ensure the following requirements are met before configuring ABAC:
License: Defense subscription.
Directory service: LDAP must be configured and reachable.
Supported rooms: ABAC applies only to private channels and private teams.
Permissions: Administrators require the Manage ABAC configuration permission to access the ABAC admin section. Each ABAC admin tab is gated by an additional per-tab permission:
Permission
Grants access to
Manage ABAC settings
The Settings tab
Manage ABAC room attributes
The Room attributes tab
Manage ABAC rooms
The Rooms tab
View ABAC audit log
The Logs tab
To assign these permissions, navigate to Manage → Workspace → Permissions and edit the relevant role.
Access ABAC settings
To open the ABAC settings, navigate to Manage → Workspace → Attribute-based access control → Settings. This is the recommended entry point, as it groups all ABAC controls (Settings, Room attributes, Rooms, and Logs) in one place.
The same settings are also available from Manage → Workspace → Settings → General → Attribute-based access control. Both locations point to the same underlying settings and have the same effect.
The Settings tab groups all workspace-level ABAC controls into the following areas:
Core settings: Enable ABAC, enforce it across all workspace rooms, select a Policy Decision Point, configure display and caching behavior.
Classification banners: Display classification markings above the room header.
Sync ABAC Attributes: Control how user attributes are synchronized from LDAP.
Virtru PDP Configuration: Connect an external Virtru Policy Decision Point (optional).
Core settings
Configure the following settings to control the foundational behavior of ABAC in your workspace:
Setting | Description |
|---|---|
Enable ABAC | Turn on the Enable attribute-based access control (ABAC) toggle to activate attribute-based authorization across the workspace. Once enabled:
|
Enforce ABAC across all workspace rooms | Turn on this toggle to apply ABAC to every room in the workspace. Rooms without the required attributes are locked until the attributes are assigned. Default: off. You can only change this setting while ABAC is enabled. See Enforce ABAC across all workspace rooms for what changes while it's on. |
Required attributes | The attributes every room must carry while enforcement is on. Adding an attribute here locks rooms that don't have it until it's assigned to them. Default: empty. This field becomes available when you turn on Enforce ABAC across all workspace rooms. |
Policy decision point (PDP) | A Policy Decision Point is the engine that evaluates access requests using user and room attributes. Select one of the following options:
Selecting Virtru enables the Virtru PDP Configuration section further down the page. |
Restrict room creators and editors to attributes they hold | When this toggle is on, a user who creates an ABAC-managed room, or changes a room's attributes with the Edit room ABAC attributes permission, can only add attribute values they hold themselves. Values the room already carries can be kept or removed. ABAC administrators are not restricted. Default: on. This setting appears only when the Policy Decision Point is set to Local. With Virtru, the Virtru PDP performs the equivalent check. |
Attribute store | Select where assignable room attributes come from. This setting appears only when the Policy Decision Point is set to Virtru. Switching the attribute store permanently clears all existing room attribute assignments. See the Attribute store section for more details. |
Show ABAC attributes in rooms | Enable this option to display each room's assigned ABAC attributes in its contextual bar. This allows room admins to verify enforcement rules without leaving the room view. |
ABAC cache decision time (seconds) | Set how long access decisions are cached before re-evaluation. The default is 300 seconds. Higher values reduce load on the PDP but delay the effect of attribute changes. Set to 0 to disable caching entirely (every access request is re-evaluated). |
Enforce ABAC across all workspace rooms
By default, ABAC applies only to rooms that are ABAC-managed. When you turn on Enforce ABAC across all workspace rooms, it applies to every room in the workspace, and every room must carry the attributes listed in Required attributes.
Before you turn on enforcement, assign the required attributes to the private rooms that need to stay active. As soon as enforcement is on, every public channel and every room without the required attributes is locked. Assigning attributes later removes members who don't hold them, including the room owner.
What changes while enforcement is on
Private channels and teams without the required attributes are locked until the attributes are assigned.
Public channels and discussions are always locked. To unlock a public channel, make it private and assign the attributes.
New rooms must be ABAC-managed and carry the required attributes, so public channels and discussions can't be created.
Discussions are turned off at Manage → Workspace → Settings → Discussion, without any message. When you turn enforcement off, they're turned back on automatically if they were on before.
Locked rooms
In a locked room, nobody can send messages or add members, including administrators. A notice replaces the message box and explains why the room is locked. Users who can manage the room's attributes see a Manage attributes button in the notice, which they can use to assign the missing attributes and unlock the room. See Manage attributes from the room.
Default rooms
Default rooms, including team default rooms, can carry ABAC attributes. New users and new team members join them only if they hold the attributes. Default rooms without attributes work as usual.
Classification banners
Classification banners display a colored strip above the room header, showing classification markings (such as classification level, need-to-know compartments, and releasability) to every member of the room. In ABAC-managed rooms, the banner is computed from the room's ABAC attributes and a JSON configuration. Rooms that are not ABAC-managed show a banner only when the configuration defines one for them.
To configure banners, navigate to Manage → Workspace → Attribute-based access control → Settings and expand Classification banners. It contains these settings:
Settings | Description |
|---|---|
Enable classification banners | Show classification banners in rooms managed by ABAC and, when the configuration defines them, in rooms that are not ABAC-managed. |
Classification banners configuration (JSON) | A JSON document describing which room attributes appear in the banner, their labels and colors, and the banners for rooms that are not ABAC-managed. Omnichannel rooms never show a banner. |
There is no Save button. Enable classification banners saves when you switch it, and the configuration saves on its own once it is valid. You can edit the configuration only while Enable classification banners is on.
Each attribute entry's source is the key of a room ABAC attribute (created on the Room attributes tab); when a room carries values for it, the banner renders the mapped labels. One attribute drives the banner color, ranked most restrictive first. The banner style is classic.
Use the classification banner builder to compose and validate the configuration with a live preview, load the complete example configuration, and view the full schema reference.
A configuration that is not valid JSON or does not match the schema is not saved, and no error appears. If you save it through the REST API, the request returns a
400error witherror-setting-validation-failed.
The configuration is not public. When a member opens a room, Rocket.Chat sends them only the banner for that room, not the full configuration.
Banners for rooms that are not ABAC-managed
To show a banner in rooms that are not ABAC-managed, such as direct messages, discussions, and public and private channels without attributes, add a nonAbacBanner list to the configuration. ABAC-managed rooms keep the banner built from their attributes.
The list is optional. If you don't need it, leave the nonAbacBanner key out of the configuration. An empty list ("nonAbacBanner": []) is rejected.
Each entry in the list has enabled, text, and color, and can have a match that limits it to some rooms.
The list must contain at least one enabled entry without match. This entry is the default banner for every room that is not ABAC-managed, including public and private channels. A list with only match entries, or whose only entry without match is disabled, is rejected.
The following table lists the fields you can use in match:
Field | Matches |
|---|---|
| Any of |
| Federated rooms ( |
| Discussions ( |
| A team's own room and every room in a team ( |
These banners use the uppercase and monospace options of the configuration's banner object.
Sync ABAC Attributes
This section controls how Rocket.Chat pulls user attributes from your LDAP directory and maps them to ABAC attributes used in access decisions. Expand the Sync ABAC Attributes section on the Settings tab to configure the options below.
Setting | Description |
|---|---|
ABAC Attributes Background Sync | Enable this toggle to run a dedicated background process that continuously synchronizes user ABAC attributes from LDAP. This ensures LDAP updates are reflected in ABAC access decisions with minimal delay. |
ABAC Attributes Background Sync Interval | Defines how frequently the background sync runs, using a cron expression. For example:
Adjust based on how often attributes change in your LDAP directory. |
ABAC Attribute Mapping | Defines which LDAP attributes are synchronized as ABAC attributes. Enter a JSON object where:
Example: This configuration maps:
|
After saving the mapping, click the Sync Now button in the top-right corner of the ABAC settings page to immediately synchronize ABAC attributes from LDAP, without waiting for the next scheduled background sync. Use this when:
You have just updated the ABAC Attribute Mapping and want changes applied right away.
A user's LDAP attributes have changed and you want the update reflected immediately.
You are troubleshooting attribute sync issues.
Notes about Sync Now button
Sync Now is only available when both LDAP and ABAC are enabled.
This button synchronizes ABAC attributes only. It is separate from the standard LDAP Sync Now action, which does not trigger an ABAC sync.
Attribute store
The Attribute store setting appears on the ABAC Settings tab when the Policy Decision Point (PDP) is set to Virtru. It controls where assignable room attributes come from.
Switching the attribute store from Local to Virtru has immediate effects on your workspace:
Existing ABAC attribute assignments are permanently cleared from all rooms. This cannot be undone.
Rooms remain private. No users are removed from any room until attributes are assigned again.
Access decisions are evaluated on Virtru. Users can only see and edit rooms they have access to according to Virtru policies.
Attributes are managed externally and limited to those the acting admin possesses. The Room attributes tab is hidden.
An audit event is recorded for the store switch.
Changing the Policy decision point (PDP) setting is gated by a confirmation step, since it changes how room access is evaluated across the workspace. When you save the change, a "Confirm settings change" modal warns that users may be unexpectedly removed from rooms, and that switching back to local also resets the Attribute store to local to ensure compatibility. Click Save changes to apply, or Cancel to keep the current value.
Configure Virtru PDP
Use the Virtru PDP Configuration section to connect Rocket.Chat to an external Virtru Policy Decision Point. This centralizes attribute management and delegates access decisions to the Virtru platform.
The Virtru PDP evaluates user attributes against room access policies and returns an allow or deny decision.
Additional prerequisites
In addition to the general ABAC prerequisites, Virtru integration requires:
A Virtru PDP instance configured and reachable from your Rocket.Chat server.
A Virtru OIDC endpoint with valid client credentials.
Network connectivity between Rocket.Chat and both the Virtru PDP and OIDC endpoint.
Connection settings
Enter your Virtru connection credentials exactly as provided by your Virtru administrator.
Setting | Description | Required |
|---|---|---|
Base URL | Virtru PDP base URL. | Yes |
Client ID | OIDC client identifier. | Yes |
Client Secret | OIDC client secret. | Yes |
OIDC Endpoint | Base OIDC realm URL used for client credentials authentication. Example: | Yes |
Attribute mapping
Setting | Description | Default |
|---|---|---|
Default Entity Key | The entity identifier sent to the External Rights Server (ERS). Options: |
|
Attribute Namespace | Namespace used to build attribute FQNs. For example, |
|
Select the entity key that matches your Virtru configuration and update the attribute namespace to match your environment.
Synchronization
Setting | Description | Default |
|---|---|---|
Membership Sync Interval | Cron expression for re-evaluating ABAC room memberships against the Virtru PDP. Non-compliant users are evicted on each run. |
(every 5 minutes) |
Adjust based on how frequently attributes change in your environment.
Test the connection
After entering your Virtru settings:
Click Test connection at the bottom of the Virtru PDP Configuration section.
Rocket.Chat attempts to authenticate with Virtru and reach the health endpoint, then displays the result as a toast notification in the top-right corner.
The toast is not persistent, once it disappears, you'll need to click Test connection again to re-check the status. For deeper troubleshooting, check your Rocket.Chat server logs, which record the action and the full error details for any failed connection attempt.
Health status
The ABAC PDP Health (toast notification) shows one of the following messages:
Status | Meaning |
|---|---|
All systems operational | Connected and healthy. |
No PDP configured | ABAC is enabled but no PDP has been selected. |
Unable to connect to the Identity Provider (IdP) | Cannot generate a token. Verify OIDC credentials and endpoint. |
Unable to reach the Virtru platform health endpoint | Network connectivity issue, or Base URL is missing or incorrect. |
Unable to perform an authenticated request | OIDC client lacks admin rights. Verify client permissions. |
PDP health check failed due to an unexpected error | Review server logs for details. |
Access control behaviour
Once the Virtru PDP is configured and healthy:
Access decisions are made by the Virtru PDP instead of local policies.
User attributes are synced from Virtru at the configured interval.
Room access is evaluated against Virtru policies.
Decisions are cached according to the ABAC cache decision time (seconds) setting.
Disable ABAC
To disable, turn off the Enable attribute-based access control (ABAC) toggle on the Settings tab.
Disabling ABAC suspends attribute-based enforcement across the workspace. Before disabling, be aware of the following:
Automatic and manual user management is blocked in existing ABAC rooms.
Rooms must be removed from ABAC management before reverting to default access controls.
All attribute-based enforcement is paused until ABAC is re-enabled.
Re-enabling ABAC triggers a new LDAP synchronization.
Force a sync on revocations
When a user’s LDAP attributes change due to termination, role downgrade, or clearance removal, immediately trigger a manual ABAC sync:
POST /api/v1/abac/users/syncRequest body:
Provide a JSON payload containing one or more user identifiers:
{
"usernames": ["alice", "bob"],
"ids": ["userId123"],
"emails": ["user@example.com"],
"ldapIds": ["ldap-uid-456"]
}