Rocket.Chat SSO with SAML, OAuth and LDAP

Rocket.Chat can sign users in through your existing identity provider, sync accounts from LDAP or Active Directory, and enforce MFA. This page explains the choices, build order, checks and handover for each.

On this page

How Rocket.Chat SSO fits your identity estate

Single sign-on, directory sync and multi-factor authentication for a self-hosted Rocket.Chat are configured inside Rocket.Chat, but they are validated against the identity provider your organization already runs, such as Active Directory, another LDAP directory, or a SAML or OAuth provider. The Rocket.Chat side is a set of authentication settings, so the real work is agreeing with your identity team which directory is the source of truth, which attributes Rocket.Chat should read, and who owns the connection when it breaks. Starter covers LDAP and Active Directory authentication, single sign-on and MFA for up to 50 users, so small pilots can test the full sign-in path without a license decision.

The harder part is account lifecycle. Authenticating a user (proving who they are at sign-in) is different from syncing their profile (name, email, department, status), and both are different from deciding what they can do. A joiner should get access on day one, a mover should lose old group access, and a leaver should be deactivated without relying on someone remembering to remove a local account. Confirm with your identity team whether disabled directory accounts stop Rocket.Chat sign-in immediately, how often profile data refreshes, and whether existing local passwords will be disabled or kept as a fallback for administrators.

Group-based access is where the plan choice matters. Mapping directory groups to Rocket.Chat roles and channel membership is listed among the LDAP and SAML group mapping features on Rocket.Chat's paid plans, not on Starter. If your model depends on groups deciding who sees which channels, price that capability into the rollout before you promise access to business units. Ask Rocket.Chat or your partner to confirm, against the current plan documentation, exactly which group mapping behaviors are included in the tier you intend to buy.

Which Rocket.Chat SSO components and identity protocols matter

Rocket.Chat SSO involves four moving parts: the Rocket.Chat server and its identity settings, the directory that holds accounts and groups, the identity provider that issues login assertions, and the clients that must sign in the same way. Each one has its own configuration, and a mismatch in any of them shows up as a failed login or an account that gets the wrong access.

Rocket.Chat server and admin identity settings

The server holds the authentication providers, account creation rules, default roles and the callback or redirect URLs that the identity provider must match exactly. Changes to these settings are often made in the Administration area, so access to that area should be limited to a small group of named administrators. Confirm the exact setting names and menu locations against the Rocket.Chat version you run, because they change between releases and an upgrade can move them.

System requirements

LDAP or Active Directory as the account source

When LDAP or Active Directory is the source of truth, the directory decides who exists, who is disabled and which groups a user belongs to. Decide early whether Rocket.Chat syncs accounts on a schedule, creates them at first login, or both, and what happens to a channel membership when a person leaves the directory. Confirm the supported LDAP sync options and filter syntax for your release, and test with a service account that has read-only rights.

SAML or OAuth identity provider

The identity provider authenticates the user and sends an assertion or token back to Rocket.Chat, which then trusts the attributes inside it. Agree on the attribute names for email, username and groups before the first test, because a missing group claim silently removes role and channel mapping. Check which signing certificate or client secret rotation process your identity team uses, since an expired certificate blocks every login at once.

MFA enforcement point

Multi-factor authentication can be enforced at the identity provider, inside Rocket.Chat, or both. Enforcing it only in Rocket.Chat leaves direct password logins and API tokens outside the identity team's policy, so decide which path is the control of record and document it. Confirm which MFA methods the Rocket.Chat release supports for your plan, since the free Starter plan includes multi-factor authentication along with LDAP and SSO.

Mobile and desktop client sign-in

The official mobile and desktop clients must authenticate through the same SSO path as the web app, or users will be stuck with separate passwords. Test each client against a staging server, including token expiry and sign-out from one device, before you announce the cutover. Rocket.Chat notes that unsupported versions can lose the ability to connect with these clients, so client support depends on keeping the server on a supported release.

Version durability

How a Rocket.Chat login and directory sync flow through your identity provider

The diagram has two paths that meet at the Rocket.Chat host. In the first, a user's browser or desktop client is redirected to your SAML or OAuth identity provider, which applies multi-factor authentication and returns a signed assertion or token to Rocket.Chat. In the second, a scheduled LDAP or Active Directory sync reads users and group memberships from the directory and creates or updates accounts in Rocket.Chat. Group data enters Rocket.Chat on the sync path or in the assertion, and that is where you map groups to roles and channels. Check which path supplies each attribute, and confirm the sync schedule and the directory service account's read scope in your environment.

Browser SSO and scheduled directory sync both reach Rocket.Chat across the trust boundary.

Choosing between LDAP sync, SAML, OAuth and MFA placement

This table compares the identity options for Rocket.Chat and the operational work each one adds. Start from your directory and identity provider, then read across each row to see when the option fits and what your team must run afterward. The main takeaway is that protocol choice follows from where your users and groups already live, not from Rocket.Chat alone.

OptionWhen it fitsWhat it costs operationally
LDAP or AD sync aloneUsers live in Active Directory or an LDAP directory and you want passwords and account status managed there, with no separate login redirectService account, directory search settings and sync schedules to maintain; directory cleanup must be planned because deprovisioning depends on sync behavior
SAML single sign-onYour identity provider already brokers corporate logins and supports SAML for applications, and you want one sign-in flow with the provider's policies appliedCertificate and metadata exchange, attribute mapping for names, emails and groups, and renewal of signing certificates on a schedule your team owns
OAuth single sign-onYour identity provider offers OAuth or OpenID-style login and your team prefers its client registration model, or the provider lacks SAML for this useClient ID and secret handling, redirect URI management per environment, and confirmation that the claims Rocket.Chat needs are sent in tokens
MFA enforced at the identity providerYour organization already requires strong authentication for all applications and wants one policy place for factors, device checks and session rulesPolicy alignment between the provider and Rocket.Chat; local login paths, such as any break-glass account, must be documented and tested separately
MFA enforced within Rocket.ChatSome users sign in with local or directory passwords outside the identity provider, or you need Rocket.Chat-specific factor settingsEnrollment support, recovery procedures and a second policy to review; users may face two prompts if both layers apply
Just-in-time account creationUsers should appear on first successful login without a separate onboarding step, and your directory is trusted to define who may enterLess upfront work, but accounts appear only after login, so channel access and reporting for not-yet-active users must be handled another way
Pre-provisioned accounts from syncYou want users, status and profile data visible before first login, or you need deprovisioning to be enforced on a scheduleSync jobs must be monitored, and disabled directory users need a tested process for deactivation in Rocket.Chat
Group mapping to roles and channelsAccess should follow directory groups for administrators, moderators or channel membership, and the group model is stableGroup mapping is listed on paid plans; on Starter, plan for manual role and channel assignment. Confirm the exact mapping features with Rocket.Chat before design.

Rocket.Chat SSO setup sequence from directory to MFA

This sequence takes a self-hosted Rocket.Chat instance from an unconfigured login page to directory-backed single sign-on with group-based roles, channel membership and MFA, proven first with a small pilot group. Each step closes with a check the team can record before moving on.

  1. Confirm version and plan entitlements

    Record the Rocket.Chat version you will run and confirm it is inside a supported window, since standard releases are supported for 6 months and LTS releases for 12 months. Then check your plan against the features you need: LDAP and Active Directory authentication and MFA are listed on the free Starter plan, while LDAP and SAML group mapping and built-in redundancy are listed on paid plans, so confirm which sign-in and mapping features your plan actually covers. Done when the owner signs off a one-page entitlement note that names the version, the plan and any features that need an upgrade.

  2. Document the identity provider and directory

    Work with the directory team to write down the identity provider, the directory schema, and the exact attributes Rocket.Chat needs: username, email, display name, and the group memberships that will drive roles and channels. Note which attribute is the stable unique identifier, since changing it later creates duplicate accounts. Confirm with the directory owner how disabled accounts and leavers are represented. Done when the attribute and group map is reviewed by the directory owner and the identity team.

  3. Connect a test LDAP or AD directory

    In a non-production Rocket.Chat instance, configure the LDAP or Active Directory connection using a read-only service account with the narrowest search scope your directory allows. Set the search base and filters to the test population only, and confirm the connection parameters, including whether the directory is reached over TLS, with the directory team. Run a test sync. Done when a test user from the directory signs in successfully and the synced profile shows the expected username, email and display name, while the service account cannot write to the directory.

  4. Configure SAML or OAuth against a test application

    Register a Rocket.Chat application in a test identity provider tenant, using the callback and entity values generated by your Rocket.Chat instance, and set the signing and encryption settings your provider requires. Confirm with the identity team which protocol your organization standardizes on, because SAML and OAuth differ in how they pass group claims. Done when a test user completes single sign-on from the Rocket.Chat login page and lands in the correct workspace, and the provider log records the sign-in.

  5. Map identity attributes to Rocket.Chat user fields

    Map the provider or directory attributes from step two to Rocket.Chat user fields, and decide how existing local accounts are matched so that no second account is created for the same person. Test with at least one account that already exists locally and one that does not. Confirm the email and username mapping in the admin view. Done when the test users show one account each, with no duplicates, and their profile fields match the source directory.

  6. Set up group to role and channel mapping

    Translate directory groups into Rocket.Chat roles and default channel memberships, keeping administrator roles to a small named group that the security team approves. Where your plan supports group mapping, map each group explicitly and leave unmapped users with the default role. Check that channel membership changes when group membership changes at the next sync or login, and document any groups that should never grant admin rights. Done when a test user in a mapped group has the expected role and channels, and a test user outside every mapped group has only the default access.

  7. Enforce multi-factor authentication

    Turn on MFA for the sign-in path your users will use and decide which accounts must enroll before first use, including administrators. Confirm with the identity team whether MFA is enforced by Rocket.Chat or by the identity provider, and make sure that choice is not bypassed by a local password login on the same account. Test enrollment and a failed second factor. Done when an administrator test account cannot complete sign-in without the second factor, and the result is recorded in the test notes.

  8. Run a pilot with a small group

    Enable single sign-on for a small pilot group defined by a directory group, and keep everyone else on the existing sign-in path until the pilot is accepted. Ask pilot users to sign in from the web and the official mobile and desktop clients, and review the sync and role results with the owner. Confirm that a user outside the pilot group is denied access through the new path. Done when pilot users sign in with the expected roles, a non-pilot test account is denied, and the owner signs off to widen the rollout.

How SSO setup differs by deployment model

A single Rocket.Chat instance in Docker is the simplest identity layout. The browser reaches one public hostname, usually through a reverse proxy that terminates TLS, and that hostname becomes the base for every SAML assertion consumer service URL or OAuth redirect URI you register with the identity provider. Because there is one application container, the sync job for LDAP or Active Directory can run from the same host or from a small scheduled container on the same Docker network, and it needs only a route to the domain controllers over the directory port you choose.

  • Callback URLs: Register one stable external hostname with the identity provider and keep the proxy's forwarded host and protocol headers consistent with it.
  • Directory sync: Run the LDAP or Active Directory connection from the Rocket.Chat server, with a bind account that has read-only rights to the user and group search base.
  • Certificates: Store the identity provider signing certificate and metadata file on the host and mount them read-only into the container, so a renewal is a file replacement plus a restart.
  • Network reach: Confirm the host can reach the identity provider's metadata and token endpoints, since outbound rules are often the first blocker.
  • Plan: Single-instance operation is available on the free Starter plan within its user limit, but SAML group mapping and Active Directory features are listed on paid plans, so check the feature list against your need.

Before go-live, confirm the callback URL in the identity provider matches the public hostname character for character and test a sign-in from a clean browser session.

Securing Rocket.Chat SSO credentials, certificates and admin access

Once Rocket.Chat trusts your identity provider, the integration itself becomes a high-value target: the directory bind account, the SAML certificates and the administrator roles all control who gets in. The cards below cover the controls that keep those pieces tight, and what your security team should check on each one.

Least-privilege directory bind account

Rocket.Chat's LDAP connection uses a service account to search for and read users. Give that account read-only access limited to the user and group containers Rocket.Chat needs, and nothing that allows writes or password resets. Store its password in your secrets manager rather than in shared admin notes, and plan a rotation date that the team actually calendars. Confirm with your directory team which attributes the account can read, since those attributes flow into Rocket.Chat profiles.

System requirements

SAML certificate handling and expiry

The signing and, where used, encryption certificates in your SAML integration have fixed validity periods. When one expires, sign-in fails for every user at once. Record each certificate's expiry date, its owner and the procedure for replacing it in both the identity provider and Rocket.Chat, and test the replacement in a staging workspace first. Ask your identity provider team how they notify you before rotation, and whether they can publish metadata that Rocket.Chat can refresh.

Restricting administrator roles

Rocket.Chat administrator roles can change authentication settings, install apps and read workspace configuration, so every admin is a privileged identity. Keep the list short, assign admin rights to named individuals rather than shared accounts, and map admin access to a directory group that your team reviews on a set schedule. Remove the role when someone changes jobs. Ask the vendor or your implementation partner to confirm which admin permissions exist in your version, because the permission set changes between releases.

Break-glass access once SSO works

After SSO is verified, decide whether local password login stays available. Many teams restrict it to a small set of named accounts with strong, offline-stored credentials, and document who may use them and under what incident conditions. Test the break-glass path before you need it, including what happens when the identity provider is down. Confirm in your environment whether local login can be disabled for regular users without locking out administrators.

Session lifetime and logout propagation

Decide how long a Rocket.Chat session stays valid and what happens when a user is disabled in the directory. A user removed from your directory should not keep access through an open desktop or mobile session. Check how sessions end when SSO is the sign-in method, whether deactivation in the identity provider is reflected in Rocket.Chat, and how quickly that happens in your version. Write the answers into your access review procedure rather than relying on defaults.

Logging authentication events for security

Send sign-in successes, failures, account lockouts, role changes and settings changes to your security monitoring. Without this, a compromised bind account or a rogue administrator leaves little trace. Confirm which authentication and admin events your Rocket.Chat version writes, where they are stored, how long they are kept, and whether your SIEM can ingest them. Paid plans list tamper-evident audit trails for messages, files and sessions, so check which of those features your plan includes.

Rocket.Chat pricing

How to test Rocket.Chat SSO and confirm it fails safely

Test the integration before any user depends on it, and treat each identity path as a claim you must prove. Start with the positive tests: a new user in the permitted directory group should sign in through SAML or OAuth and be provisioned with the expected username and email, the LDAP or Active Directory sync should place them in the right Rocket.Chat groups, and those groups should map to the intended roles and private channel access. Confirm that the multi-factor challenge appears where your policy requires it, and that a user who is not enrolled is handled the way your policy says. Use one test account per role so each mapping is checked on its own, not inferred from an admin login.

Negative tests matter more than positive ones because they show whether access ends when it should. Remove a test user from the directory, run a sync, and confirm that sign-in fails and that existing sessions are invalidated according to your settings. Place a user outside the permitted group and confirm access is denied rather than silently created with default permissions. Submit a SAML response with a bad signature, an expired assertion, or a certificate that has passed its expiry date, and confirm each is rejected and logged. Record the exact error and the Rocket.Chat and identity provider log entries for every case. Ask your identity team which certificate rotation dates apply so the expiry test uses a realistic near-term date in a staging tenant.

Failure tests show what happens when a dependency breaks. Simulate an identity provider outage and confirm which local administrator accounts still work, and that those accounts are protected by MFA and kept out of routine use. Make the directory unreachable during a scheduled sync and confirm that existing users keep their current state without being wrongly removed or granted new rights. Finally, check that the official mobile and desktop clients re-authenticate correctly after a token or session expires, since clients that fail here generate support load. Keep the test scripts, dates, versions, configuration exports and results together as evidence for your audit and security review, and repeat the full set after each Rocket.Chat upgrade.

What drives SSO effort and how to keep it down

This table lists the factors that change how much work a Rocket.Chat SSO, LDAP or Active Directory integration takes, why each one matters, and what to fix or ask for in a written scope. Read each row as a question to settle before the work starts, since most extra effort comes from decisions made late.

DriverWhy it mattersHow to keep it down
Number of identity sources and directoriesEach directory, forest or identity provider needs its own connection, attribute rules and failure testing, and users who appear in more than one source can log in under conflicting identities.Confirm the authoritative source for each user population in writing and retire or exclude secondary sources before build starts.
Quality of group data in the directoryRole and channel mapping depends on group membership being accurate, current and named consistently. Nested, orphaned or stale groups produce wrong access that is hard to spot.Audit group naming and nesting with the directory owner first, and agree which groups are in scope for mapping.
Number of groups mapped to roles and channelsEvery mapped group adds a rule to test and a path that can grant or remove access. Large group counts multiply test cases and review time.Map only the groups that drive roles and default channels, and handle exceptions through documented manual steps.
Custom attribute mappingFields such as username, email, department or employee ID may need transformation or fallback logic, and unusual attribute formats often surface only with real users.List every attribute Rocket.Chat must read or write, and ask for a sample export of directory records to test against.
MFA policy complexityDifferent rules for admins, contractors, mobile users or specific groups create branching login paths that each need verification.Start with one tenant-wide MFA policy and document any exceptions as named groups with an owner and review date.
Number of environments (test, staging, production)Each environment needs its own identity configuration, test accounts and callback or certificate settings, and drift between them is a common cause of late defects.Ask for a written promotion path and keep configuration in version-controlled settings where the platform supports it.
Access to identity provider administrators and directory ownersSettings, certificates, claim rules and group changes all sit with people outside the Rocket.Chat team. Slow access or limited test accounts extend the schedule.Name the administrators and directory owners in the scope, agree on change windows, and arrange test accounts before build begins.
Compliance evidence requested by the security teamAssessors often ask for configuration records, access reviews, MFA enforcement proof and audit logs. Collecting these after the fact is slower than building them in.Agree the evidence list in the scope, such as configuration exports, sample login logs and access review outputs, and confirm which items the paid plan's audit features cover.

Operating Rocket.Chat SSO after go-live

Once SSO is live, the identity integration needs an owner and a routine, because most failures appear later as silent drift rather than as an outage. Watch the LDAP or Active Directory sync job for both failed runs and drift, meaning accounts that were disabled upstream but still active in Rocket.Chat, or users whose group membership no longer matches their role and channel assignments. Review the group-to-role and channel mappings on a fixed schedule with the identity team, and record who approved each mapping. Keep authentication logs for SAML or OAuth logins and failed MFA prompts, and check them for unexpected sign-in patterns from admin accounts.

Put every expiry date in a register. SAML signing certificates, the OAuth client secret, and any service account password used for LDAP binds all expire, and an expired certificate or secret stops logins without warning. Also record every change made on the identity provider side, such as a changed redirect URI, a renamed application, or a new claim, because a single upstream edit can break sign-in for the whole workspace. Confirm the exact certificate and secret renewal steps with your identity provider vendor and with Rocket.Chat's administration documentation before the first expiry date arrives.

Upgrades can change authentication behavior, so every Rocket.Chat upgrade needs a regression login test before it reaches users. The test should cover an SSO login, an LDAP login for a sample account, an MFA challenge, a user with a mapped admin role, and a mobile or desktop client connection. Rocket.Chat states that unsupported versions may lose the ability to connect with its official mobile and desktop clients, so run identity changes only on lines that are still inside the release support window described in Rocket.Chat's version durability documentation. Document the tested version, the test results and the rollback path in the same change record.

Rocket.Chat SSO questions buyers and engineers ask before hiring help

Is SSO available on the free Rocket.Chat Starter plan?

Yes. The free Starter plan includes LDAP and Active Directory authentication, single sign-on and multi-factor authentication, but it is limited to up to 50 users. The free Community workspace allows up to 100 concurrent users with core messaging, and the plan details are listed in the Rocket.Chat plans documentation. Confirm the current limits on that page before you design around them, because a larger user base or a need for advanced identity features will move you to a paid plan.

When does group to role mapping require a paid Rocket.Chat plan?

LDAP and SAML user group mapping is listed among the features of Rocket.Chat's paid plans, which are Commercial, Government and Defense and are priced by quote. If your design depends on mapping directory groups to Rocket.Chat roles or channels, check the mapping feature against the plan you intend to buy before you commit to an identity design. Ask the vendor to confirm in writing which plan includes each mapping capability you need, since the Starter plan's SSO and LDAP support does not automatically cover every mapping option.

What does the client need to provide for an SSO project?

The work depends on access that only your own staff can grant. You will need directory and identity provider administrators who can create the application registration, service accounts, and group claims, plus a test tenant or non-production Rocket.Chat instance where changes can be verified before production. Your team also needs to make group design decisions: which directory groups map to which Rocket.Chat roles, which groups create or join default channels, and who approves changes. Agree on these owners at the start, because delays in identity decisions are a common source of schedule slippage.

Can an in-house team set up Rocket.Chat SSO without a partner?

Yes, an experienced in-house team can configure LDAP, SAML or OAuth single sign-on. The work becomes manageable when you write a test plan that covers login for each user type, group to role changes, deprovisioning of a leaver, MFA enforcement and fallback access for administrators, and when one named owner is responsible for the configuration. Plan for the identity provider side to take longer than the Rocket.Chat side, since directory changes often need approval from other teams.

What drives the cost and timeline of an SSO engagement?

The main drivers are the number of identity sources, whether you use LDAP or Active Directory sync, SAML or OAuth single sign-on, how many group mappings need to be designed, and how many environments must be tested before production. Cost also rises with approval steps, change windows, and the amount of documentation your compliance team requires. DeployOpen does not publish prices. We quote from a written scope that lists the identity providers, environments, mappings, MFA policy and deliverables, and we agree timelines in writing before work starts.

What should we ask a partner to hand over at the end of SSO work?

Ask for the working configuration in a form your team can maintain, including the identity provider settings, LDAP or Active Directory sync parameters, and the group to role and channel mapping table. Request a written test plan with results, a runbook for adding users, changing groups and handling leavers, and a record of the MFA policy and administrator fallback procedure. Also ask who owns credentials and secrets after handover, and what support is included in the scope, so you know what to expect after go-live.

How do we confirm SSO works before users depend on it?

Test in a non-production instance with accounts that match each real group, then verify login, role assignment, channel membership and removal after a directory change. Include MFA prompts, session expiry and a failed-login case, and record the results so an auditor or security reviewer can see them. Confirm the expected behavior against the version you run, since the feature set differs between Rocket.Chat releases and plans, and keep the test plan so it can be repeated after each upgrade.

How DeployOpen scopes, builds and hands over Rocket.Chat SSO

DeployOpen plans, implements, hardens and documents self-hosted open-source platforms inside the client's own infrastructure, including Rocket.Chat identity integration. The work starts with a written scope that names the identity provider, the sign-in methods and the role mapping before any configuration changes are made.

How we scope

  • Confirm which identity provider, directory or SAML and OAuth sources the Rocket.Chat instance will trust.
  • Record which sign-in methods apply: LDAP or Active Directory sync, SAML, OAuth, and MFA for each user group.
  • Agree in writing the group to role and channel mapping rules, and who approves changes to them.
  • Engagements are fixed-scope, with scope, deliverables and timelines agreed before work starts. Ongoing support is available as a retainer.

How we build

  • Configure the directory connection and test sync with a pilot group of accounts before wider rollout.
  • Set up SAML or OAuth single sign-on against your identity provider, including attribute and group claim mapping.
  • Test sign-in, deprovisioning, role assignment and MFA enforcement across each user group in a staging instance.
  • Check that the Rocket.Chat version in use is within its support window before identity changes go live.

How we hand over

  • Deliver a written configuration record covering directory settings, SSO parameters, mapping tables and MFA policy.
  • Document the test cases used, their results, and the steps to repeat them after an upgrade or a change in the identity provider.
  • Walk your identity and collaboration administrators through daily operations, including onboarding, offboarding and exception handling.
  • Provide evidence of access controls in a form your compliance and security teams can review, without issuing any audit opinion.

How we support

  • Review identity configuration again when Rocket.Chat releases an upgrade or your identity provider changes its settings.
  • Retest sign-in and group mapping after certificate renewals, directory changes or new user groups are added.
  • Offer retainers for ongoing support, upgrades and continuous security testing of the sign-in path.
  • Confirm with your identity provider vendor which SAML, OAuth and LDAP options your version supports before scoping.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.