Rocket.Chat SAML single sign-on with Microsoft Entra ID

Rocket.Chat can sign users in through Microsoft Entra ID over SAML. This page covers the enterprise application, claims, username derivation, the RSA-SHA1 requirement and how to test it before go-live.

On this page

Rocket.Chat SAML SSO with Microsoft Entra ID: what the integration does

Consider a team that wants its staff to sign into Rocket.Chat with their Microsoft Entra ID accounts instead of local Rocket.Chat passwords. The supported route is the built-in SAML provider that Rocket.Chat documents for Entra ID, which lets the identity provider handle the password, multi-factor prompts and account disablement while Rocket.Chat accepts the result. Before any configuration starts, the team should agree that Entra ID remains the system of record for who can sign in, and that the Rocket.Chat server is a service provider that trusts Entra ID's word about each user.

The trust relationship works in a fixed sequence. When a user opens Rocket.Chat, the server redirects the browser to Entra ID with a SAML request. Entra ID authenticates the user and returns a signed assertion containing attributes such as the user's email address and display name. Rocket.Chat checks the signature against the certificate it has been configured to trust, then creates or matches the local account. Anyone who can change the signing configuration or the trusted certificate can change who gets in, so those settings belong under change control. The attribute values also define the account identity, so the team must confirm which claims Entra ID sends before go-live.

This section covers sign-in only. Assigning Entra ID groups to Rocket.Chat roles and driving channel membership from assertions are separate configuration topics with their own settings and plan requirements, and they should be designed after sign-in works. The page assumes a self-hosted Rocket.Chat server in infrastructure the client controls, with SSO available on the free Starter plan according to Rocket.Chat's plans documentation. Confirm with Rocket.Chat that your chosen plan and version include every feature you intend to use, because the plan list changes between releases.

What you need before configuring Entra ID and Rocket.Chat

Entra ID SAML for Rocket.Chat depends on decisions made before anyone opens the Azure portal: which Rocket.Chat line runs, who can create the enterprise application, what public address users will reach, and which people or groups get access. Settle these first, because several of them change the menu labels, URLs and certificate steps you will follow.

Rocket.Chat version and support line

Confirm the exact Rocket.Chat version your server runs and whether that line is still supported. Standard releases receive security fixes for 6 months and LTS releases for 12 months, and after end of life cloud services such as the push notification gateway stop working. Plan the SSO work on a supported line so you do not configure SAML twice across an upgrade. Check the release you are on against the GitHub releases page before you start.

Version durability docs

Entra ID tenant and admin rights

You need a Microsoft Entra ID tenant and an account that can create and configure enterprise applications, usually a Cloud Application Administrator or Application Administrator role, or a Global Administrator if your tenant is restricted. Confirm the role with your Entra ID owner before the change window. Ask who approves SAML certificate and claim changes, because those settings affect every user who signs in.

Public HTTPS address for the server

The identity provider must redirect users back to a stable, publicly reachable HTTPS address for your Rocket.Chat server. Fix this address before configuring Entra ID, because the entry point, logout and reply URLs are built from it. Changing the domain later means updating the Entra ID application and the Rocket.Chat SAML settings together. Confirm the certificate chain is valid for that name.

Agreed list of users and groups

Entra ID only lets assigned users sign in when assignment is required, and unassigned users cannot sign in at all. Agree which users or security groups get the Rocket.Chat application, who maintains that group, and who handles leavers. Decide now whether roles or channel membership will come from assertions later, since that changes which attributes you must send.

Signing certificate and RSA-SHA1 handling

Rocket.Chat currently signs all SAML requests with RSA-SHA1, so the Entra ID application must allow verification certificates and RSA-SHA1 signed requests. Treat this as a deliberate exception: record who approved it, the certificate expiry date and who renews it. Store the certificate and metadata files under your normal secret and change control process.

Entra ID SAML setup guide

Confirm labels against current docs

Menu names, admin roles and setting labels in both Entra ID and Rocket.Chat change between releases. Treat the steps in this guide as a map, and check each label against the Rocket.Chat documentation for your version and the current Microsoft Entra admin center before you click. Write down the version and the page you used so a later upgrade review can repeat the steps.

How to configure SAML between Entra ID and Rocket.Chat

This sequence builds a SAML trust between a Microsoft Entra ID enterprise application and Rocket.Chat, so assigned users can sign in with their work accounts and Rocket.Chat creates usernames from their email addresses.

  1. Confirm Rocket.Chat prerequisites and paid plan

    Before touching Entra ID, the Rocket.Chat administrator confirms the workspace is on a plan that includes SAML single sign-on and that the Rocket.Chat server URL is final, because the identifier and reply URLs are built from it. The Entra administrator confirms the tenant, the account holder who can create enterprise applications, and which groups or users will be allowed to sign in. Check: both owners have written down the exact base URL and the list of pilot users, so later steps do not depend on guesswork. Confirm the current plan details with Rocket.Chat before you assume SAML is available on your tier.

  2. Create the enterprise application and SAML configuration

    In the Entra admin center, the administrator creates a non-gallery enterprise application for Rocket.Chat and opens its single sign-on settings, selecting SAML. Rocket.Chat's SAML settings page in administration provides the service provider values to copy into Entra, including the entity identifier, the reply (assertion consumer) URL and the logout URL. Enter these values exactly as Rocket.Chat displays them, including the trailing path and protocol. Check: the Basic SAML Configuration section shows the identifier and reply URL matching the Rocket.Chat values character for character, and the entry point and logout URLs are filled in from the Entra federation metadata.

  3. Map the emailaddress and displayname claims

    In the Attributes and Claims section, the administrator keeps the required emailaddress claim pointed at the user's mail attribute and adds a displayname claim sourced from the user's display name. Rocket.Chat's Entra ID guide uses these two claim names, so the names must match what Rocket.Chat expects in the SAML settings. The username is not sent as a separate claim; Rocket.Chat derives it from the email address in a later step. Check: the claims table lists emailaddress and displayname with the expected source attributes, and a sample user in the claims preview shows a populated email value and display name.

  4. Enable certificate verification and RSA-SHA1 signed requests

    Rocket.Chat currently signs all SAML requests with RSA-SHA1, so the Entra administrator must allow that algorithm. In the SAML signing certificate settings, the administrator enables the option to require verification certificates and enables the option to allow requests signed with RSA-SHA1. Without these, Entra rejects Rocket.Chat's sign-in requests. The administrator then downloads the Federation Metadata XML or the certificate, and records the Login URL and Microsoft Entra Identifier. Check: the settings show both options enabled and the metadata or certificate file is saved where the Rocket.Chat administrator can upload it. Confirm the current signing behavior with Rocket.Chat's documentation before go-live, since it may change in later releases.

  5. Assign test users to the enterprise application

    Entra ID only signs in users who are assigned to the enterprise application. The administrator adds a small pilot group, such as a few named test accounts from different departments, under Users and groups, and sets the assignment so that unassigned users cannot sign in. This keeps access scoped while the configuration is proven. Check: the assignment list shows each pilot user with the default access role, and a user who is not on the list is refused when the Rocket.Chat sign-in is attempted later. Record the pilot list so it can be expanded deliberately.

  6. Enter SAML settings and the username regex in Rocket.Chat

    In Rocket.Chat administration, the administrator opens the SAML provider settings and enters the Entry Point URL (the Entra Login URL), the Identity Provider Issuer or entity value from Entra, and the certificate or metadata content downloaded earlier. Under the user mapping fields, the administrator maps the email claim to emailaddress and the name claim to displayname, then sets the username derivation to the regex (.*)@.+$, which takes the part before the @ sign. Save the SAML service and enable it. Check: the SAML service shows as enabled, the saved values match the Entra entries, and the regex is stored exactly as written.

  7. Run a test sign-in and confirm the user record

    The administrator signs in with a pilot account from a private browser window, going through the Entra sign-in page and returning to Rocket.Chat. The check is that the user lands in the workspace, the username matches the part of the email address before the @ sign, and the display name matches the Entra profile. Repeat with an unassigned account to confirm it is refused. Check: the expected user appears in the Rocket.Chat user list with the correct username and display name, and the unassigned test fails at Entra. Only after both results should the assignment list be expanded to more users.

Which Entra ID claims map to Rocket.Chat user fields

This table compares each Entra ID claim with the Rocket.Chat user field it fills, what that field controls, and what happens when the value is missing or differs from the directory. Read it before you configure the attribute mappings, because a wrong or empty claim changes who can sign in and how accounts are matched. Role and channel sync from assertions is covered on a sibling page.

Rocket.Chat fieldEntra ID source and claimWhat it controlsIf empty or mismatched
Email addressUser email mapped to the emailaddress claimPrimary identifier that Rocket.Chat uses to match or create the account and to send notificationsLogin can fail or create a duplicate account if the address differs from the one already in Rocket.Chat
UsernameDerived from the email address using the regex (.*)@.+$The handle users see in mentions, direct messages and the member directoryIf the regex does not match, the username may be blank or unexpected, so confirm the result with a test user
Display nameName mapped to the displayname claimThe name shown beside messages, in member lists and in mentionsAn empty value leaves users with a less readable name, and later directory edits may not update existing accounts
Entra ID user assignmentAssigned users and groups on the enterprise applicationWhether an account can start a SAML sign-in at allUnassigned users cannot sign in, even when the claim mappings are correct
Certificate and signing settingsRequire verification certificates and Allow requests signed with RSA-SHA1 enabledWhether Rocket.Chat accepts the signed SAML responses that Entra ID sendsSign-in fails for all users when these settings are disabled, because Rocket.Chat signs requests with RSA-SHA1
Claim source attributeSource attribute chosen for each claim in the Entra ID attribute mappingThe directory value Rocket.Chat receives for each fieldA different source attribute than the one users expect can produce mismatched names or emails, so compare test values with the directory

Why RSA-SHA1 signed requests must be allowed in Entra ID

Entra ID blocks the Rocket.Chat SAML login unless you allow RSA-SHA1 signed requests, because Rocket.Chat currently signs every SAML request with that algorithm. Two settings on the Entra ID enterprise application have to be enabled for this to work: Require verification certificates and Allow requests signed with RSA-SHA1. Without them, the sign-in fails before a user reaches Rocket.Chat, and users who are not assigned to the application cannot sign in at all, so assignment and these settings should be checked together during testing.

Approving this change means accepting an older signature algorithm for this one authentication flow. SHA-1 is no longer considered strong for new signing work, so the trade-off is real even though Rocket.Chat controls the request signing and the risk is narrower than a general SHA-1 exposure. Record the decision in your identity or change record, name the owner who accepted it, state which application and tenant it applies to, and note that the setting is a dependency of the Rocket.Chat release you run. Review it again at each Rocket.Chat upgrade.

Before you approve the change, confirm the current signing behavior in the Rocket.Chat Entra ID SAML guide and against the release you have installed, since the guide may be updated when Rocket.Chat changes its SAML library. If a newer release signs with a stronger algorithm, plan to switch the Entra ID setting back off and retest sign-in for all assigned users. Keep the settings change in the same ticket as the Rocket.Chat upgrade so the two stay aligned.

Security settings for Entra ID SAML sign-in

Once SAML sign-in works, the security decisions move to the edges: who can be signed in, how the signing certificate is handled, and who can change the settings. These cards cover the controls to confirm in your Entra ID tenant and your Rocket.Chat workspace before users depend on single sign-on.

Require assignment before sign-in

Turn on the Entra ID setting that requires user assignment to the Rocket.Chat enterprise application. Rocket.Chat's guide notes that unassigned Entra users cannot sign in, so assignment is the gate that decides who can reach the workspace. Assign by group where possible, and confirm that removing a user or group from the application takes effect for their next sign-in. Check this first because it is the main control over who gets in.

Entra ID SAML guide

Protect the signing certificate

Rocket.Chat signs SAML requests with RSA-SHA1, so the Entra ID signing certificate and its verification settings are part of the trust chain. Limit who can download the certificate private material or change the certificate in the enterprise application. Record the certificate expiry date and set a renewal reminder well ahead of it, because an expired certificate stops sign-in for every user. Confirm the rollover steps in your tenant before the date arrives.

Restrict who administers SAML settings

In Rocket.Chat, the SAML provider settings control where users are sent and how their identity is mapped, so changes there can redirect or widen sign-in. Limit the administrator role to a short named list, and make changes through a change record. Review the audit history of administrative changes regularly. Confirm which of these actions your plan records, since audit detail varies by edition.

Decide on local password login

Decide whether local Rocket.Chat password accounts remain available alongside SAML. If they stay enabled, a user can sign in outside Entra ID, and Entra conditional access and sign-in policies will not apply to those logins. Keep a small number of break-glass local administrator accounts with strong, stored credentials, and document who can use them and when. Test the fallback path before go-live.

Set the two-factor policy explicitly

Decide whether two-factor authentication is enforced in Rocket.Chat for SAML users, or whether the identity provider's multifactor policy is the only second factor. Confirm the options your Rocket.Chat plan offers for enforcing 2FA by role, and document the choice so reviewers can see where the second factor is applied. Avoid assuming that an Entra ID policy also covers local logins, which it does not.

Review Entra ID sign-in logs

Use Entra ID sign-in logs to review successful and failed sign-ins to the Rocket.Chat application, including the conditional access results and the client used. Set an alert or review cadence for repeated failures and for sign-ins from unexpected locations. Confirm the log retention in your tenant and whether you forward these logs to your central monitoring, since the default retention may not match your recordkeeping needs.

Common Entra ID SAML failures in Rocket.Chat and how to fix them

This table lists the sign-in failures most often seen when Rocket.Chat is connected to Microsoft Entra ID over SAML, with the likely cause and the fix for each. Work through the rows in order when a sign-in fails, because the signature and certificate checks come before attribute mapping. Confirm exact error text and settings against the Rocket.Chat Entra ID guide and your own tenant before changing production configuration.

FailureLikely causeFix
Sign-in rejected because requests are signed with RSA-SHA1Rocket.Chat currently signs SAML requests with RSA-SHA1, and one or both Entra ID settings that allow this are offIn Entra ID, enable Require verification certificates and Allow requests signed with RSA-SHA1, then test a fresh sign-in
Assigned user cannot sign inThe user is not assigned to the Rocket.Chat enterprise application in Entra ID, so Entra ID refuses the sign-in before Rocket.Chat receives itAssign the user or a group to the enterprise application, then confirm the user can open the application from My Apps
User signs in but account is wrong or missingThe emailaddress claim is not sent or does not match the email Rocket.Chat expects, so the account is not matched or a new one is createdCheck the claim mapping for emailaddress and compare it with the existing Rocket.Chat user's email, then correct the claim source in Entra ID
Unexpected or duplicate usernamesThe username regex (.*)@.+$ derives the username from the part before the @, so two users with the same local part on different domains collide or get odd namesReview the email addresses in the tenant before go-live, decide on a naming convention, and adjust the regex or user data where needed; test with sample accounts first
Display names missing or wrongThe displayname claim is not mapped to the user's name attribute in Entra ID, or the source field is empty for some accountsMap displayname to the correct directory attribute, populate it for affected users, and sign in again to refresh the profile
Logout does not return to the expected page or failsThe Entry point, logout URL or Single sign-out settings in Rocket.Chat do not match the values Entra ID has registered for the applicationCopy the sign-out and sign-in URLs from the Entra ID enterprise application again, compare them character by character with the Rocket.Chat SAML settings, and retest
Sign-in suddenly fails for everyoneThe signing certificate in Entra ID has expired or was replaced without updating the certificate Rocket.Chat trustsCheck the certificate expiry date in the Entra ID SAML configuration, issue or activate a new one, and update the Rocket.Chat certificate setting before the old one lapses
Settings look correct but sign-in still failsA change was made in one place only, or the browser holds an old session from a previous configurationRe-check each setting against the vendor guide, clear the browser session, and test with a clean sign-in in a private window

How to test Entra ID SAML before go-live

Run a pilot with a small group of assigned test accounts before any user is moved to Entra ID sign-in. Choose accounts that cover the cases that matter: a standard member, an account with a long or unusual display name, and an account whose sign-in address differs from its username pattern. Assign each one to the Rocket.Chat enterprise application in Entra ID, then sign in and compare what Rocket.Chat shows against the directory. The username should be the part of the email address before the @ sign, derived by the regex (.*)@.+$, and the display name should match the directory's name field. Record any mismatch before go-live, because existing accounts keep their usernames once created.

Next, test sign-out and re-sign-in, then test refusal. Sign out of Rocket.Chat, close the browser, and sign in again through the identity provider to confirm the flow completes without a stale session. Then sign in with an account that exists in the tenant but is not assigned to the application. Entra ID should refuse it, and Rocket.Chat should not create or activate an account. Confirm the refusal in the Entra ID sign-in logs as well as in the Rocket.Chat user list. Keep a written record of the SAML settings used at the time of the test: the entry point and logout URLs, the claim names for email and display name, the username regex, the certificate verification and RSA-SHA1 settings, and the Rocket.Chat version. Store it with the change record so an auditor or a future administrator can see what was tested.

Repeat these checks after every certificate renewal and after every Rocket.Chat upgrade, since either can change signing behavior or the SAML configuration. Confirm the current RSA-SHA1 requirements with the Rocket.Chat Entra ID SAML guide before each retest, because the signing algorithm is a vendor-controlled setting that may change. Plan who runs the retest, who signs off, and how long the pilot group stays in place before wider rollout. Ask your Rocket.Chat support or implementation partner to confirm which versions your environment will run.

Questions buyers ask about Rocket.Chat Entra ID SAML setup

How long does Rocket.Chat SAML setup with Entra ID take?

The duration depends on how much access you can give the team, and on how much testing you need before go-live. No duration is fixed by the vendor documentation, so do not plan from a generic number. The configuration itself is a short sequence: create the enterprise application, set the entry point and logout URLs, map the claims, and enable the certificate and RSA-SHA1 settings. The schedule usually stretches on the parts outside that sequence: waiting for a tenant administrator to approve changes, confirming which test users are assigned, and checking sign-in from each client you support. Ask any partner to state the access they need from your tenant and the test cases they will run, then tie the timeline to those items.

Can our own team set up Rocket.Chat SAML with Entra ID without a partner?

Yes, if your team has an administrator for Microsoft Entra ID and an administrator for Rocket.Chat, and both can make changes in their own systems. The vendor's Entra ID SAML guide covers the main steps. The risks sit in the details: Rocket.Chat signs SAML requests with RSA-SHA1, so the Entra ID settings for verification certificates and RSA-SHA1 requests must be enabled, and users who are not assigned to the application cannot sign in. Teams without prior SAML experience often find the claim mapping and the username regex the hardest part to validate. A partner is useful when you need the work documented for an assessment or repeated across environments.

What does the work need from the identity and Rocket.Chat administrators?

The identity administrator provides and changes the Entra ID side, and the Rocket.Chat administrator provides the server-side SAML settings. Each side has its own decisions to make before the work starts.

Does the Rocket.Chat Starter plan include single sign-on?

Yes. The Starter plan includes single sign-on, along with LDAP and Active Directory authentication and multi-factor authentication, and it allows up to 50 users. Rocket.Chat's plans documentation lists these features, so confirm the current plan contents on that page before you buy. Some related features are on paid plans. The plans documentation and pricing page list SAML and LDAP user group mapping, along with tamper-evident audit trails, as paid-plan items. If your design depends on group mapping or audit trails, confirm that the plan you choose includes them before scoping the work.

What drives the cost and effort of a Rocket.Chat SAML project?

The main drivers are the number of environments, whether roles or room membership come from the identity provider, and how much testing you require. A single production instance with basic login is the smallest case. Role sync and room membership from assertions add claim design, a plan that supports those settings, and additional test cases. Each extra environment, such as staging and production, repeats configuration and testing. Ongoing costs include upgrades, since unsupported versions lose security fixes and may stop working with the official mobile and desktop clients, and changes when Entra ID or Rocket.Chat settings change. Ask for the cost split between one-time configuration and any recurring retainer.

What should a quote for Rocket.Chat Entra ID SAML setup include?

A quote should follow from a written scope that names what is in and out. Ask for these items:

  • The Rocket.Chat plan and version the work targets, and whether it includes the paid features you need.
  • The environments covered, such as staging and production, and the test cases run in each.
  • The Entra ID and Rocket.Chat configuration steps, including the RSA-SHA1 and certificate settings, the claim mappings and the username regex.
  • Deliverables such as a configuration record, a test report and handover notes, plus any retest.
  • Access you need from the tenant and the Rocket.Chat workspace, and who provides it.
  • Timelines, assumptions and any items you must confirm in your own environment.
What should we confirm before enabling SAML sign-in for all users?

Confirm that a small pilot group signs in successfully from every client you support, that users not assigned in Entra ID are blocked as expected, and that the username derived from the email address matches your naming standard. Also confirm how the team will recover access if the identity provider is unavailable, since local administrator accounts and their credentials need to remain usable. Record the Entra ID and Rocket.Chat settings so a later upgrade or change can be checked against them.

Entra ID only signs users in after an assignment check and claim mapping

The login starts when a user opens Rocket.Chat, which sends them to Entra ID with a SAML request that Rocket.Chat signs with RSA-SHA1. Entra ID first checks whether the user is assigned to the enterprise application, and an unassigned user is stopped there. For an assigned user, Entra ID returns a signed assertion through the browser. Rocket.Chat then verifies that signature and maps the emailaddress and displayname claims to the account. Check each of these three points when a login fails.

Login path with the RSA-SHA1 request, assignment check and claim mapping marked.

How DeployOpen works on this

DeployOpen plans, builds, tests and documents Rocket.Chat SAML single sign-on with Microsoft Entra ID inside your own infrastructure, so your identity, security and compliance teams can review every setting. Engagements are fixed-scope, with the enterprise application, claim mapping and signing configuration agreed in writing before work starts.

How we scope

  • We confirm your Rocket.Chat version, hosting model and the plan tier your organization holds before any configuration work begins.
  • We document which Entra ID tenant, groups and users will sign in, and which login or logout behavior your team requires.
  • We agree in writing whether role or room sync from assertions is in scope, since it depends on paid-plan features you must confirm.

How we build

  • We configure the Entra ID enterprise application, entry point and logout URLs, and the emailaddress and displayname claims against your instance.
  • We set the username derivation regex and enable the signing settings Rocket.Chat currently requires for RSA-SHA1 signed requests.
  • We test sign-in with assigned and unassigned test accounts to confirm that unassigned users are refused and assigned users are provisioned correctly.

How we hand over

  • We deliver a configuration record listing every Entra ID and Rocket.Chat setting, with the reason each setting was chosen.
  • We document the certificate renewal steps, including how to handle the signing certificate before it expires, so your team can repeat them.
  • We hand over a test script and results so your team can retest sign-in after upgrades, tenant changes or certificate rotation.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer, covering changes to Rocket.Chat versions and identity settings.
  • We can review the SSO configuration again when you plan a major Rocket.Chat upgrade, since end-of-life versions stop receiving fixes.
  • Ask for a written quote that lists the scope, deliverables, retest steps and whether support is one-time or recurring.

Sources and further reading

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.