Single sign-on for Microsoft 365 based on your existing Active Directory
Microsoft 365 hands the sign-in for your domain to DTS Identity over SAML 2.0. Users sign in on the page they know from the VPN and their other applications, Microsoft accepts the MFA done there, and their accounts keep coming from Active Directory.
Signing in to Microsoft 365 step by step
Mailboxes, files and teams stay in Microsoft 365. The users of your domain sign in at DTS Identity instead; Microsoft calls such a domain a federated domain. The two systems are connected over SAML 2.0, the open standard one system uses to hand a sign-in to another.
The user opens Microsoft 365
The user enters their email address on the Microsoft sign-in page. Microsoft recognizes the federated domain and sends the user to DTS Identity instead of asking for a password.
The sign-in happens at DTS Identity
The DTS Identity sign-in page opens in your design. The password is checked against your own domain, through the agent in your network.
The second factor is checked
DTS Identity asks for the factor your policy requires: a passkey, a code from an authenticator app or an SMS code. The response to Microsoft records that MFA took place.
Microsoft 365 opens
DTS Identity returns a signed SAML response. Microsoft matches it to the account that Microsoft Entra Connect created from Active Directory and accepts the MFA done at DTS Identity.
Same sign-in and MFA as your other applications
After the VPN, Microsoft 365 is the application IT teams connect most often. Everything below comes with the connection.
Federate your domain using the console and PowerShell
This is the short version. In the admin console, the guided setup of the integration shows the same steps and the finished command with your own values filled in.
What you need
- A domain of your own in Microsoft 365, verified through DNS. Microsoft does not federate the default domain that ends in onmicrosoft.com
- Microsoft Entra Connect between your Active Directory and Microsoft 365, which creates the user accounts
- An administrator account that signs in directly at Microsoft, not through the domain you federate
- PowerShell with the Microsoft Graph module on the computer you run the setup from
How to connect it
- 1In the admin console, add Microsoft 365 from the integration catalog, enter your domain and choose the default directory, in most cases your Active Directory.
- 2Assign the application to the users or groups that use Microsoft 365.
- 3Connect PowerShell to Microsoft 365 with the Microsoft Graph module and the permissions the guided setup names.
- 4If the domain was federated before, switch it back to managed authentication first, so that Microsoft picks up the new settings.
- 5Run the prepared command New-MgDomainFederationConfiguration. It registers DTS Identity as the SAML identity provider of your domain and sets Microsoft to accept the MFA done there.
- 6Optional: decide on Microsoft's security defaults. While they are on, Microsoft requires every user to register for its own MFA; the guided setup shows where to switch them off, which Microsoft labels as not recommended.
Common questions about Microsoft 365 and single sign-on
What IT teams ask before they federate their Microsoft 365 domain: the protocol, MFA, Entra Connect, Active Directory, domains and plans.
How does DTS Identity provide single sign-on for Microsoft 365?
DTS Identity acts as the SAML 2.0 identity provider for a Microsoft 365 domain. Microsoft calls this a federated domain: Microsoft Entra ID sends each sign-in for the domain to DTS Identity, which verifies the user and the second factor and returns a signed response. The setup uses the Microsoft 365 entry in the DTS Identity integration catalog and one PowerShell command against Microsoft Graph.
Does Microsoft 365 ask for MFA again after the DTS Identity sign-in?
The DTS Identity setup configures the federation so that Microsoft Entra ID accepts MFA performed by DTS Identity, and DTS Identity marks a sign-in as multi-factor only when it used a passkey or two factors. Microsoft's security defaults are a separate setting: while they are on, Microsoft requires every user to register for Microsoft's own MFA. The guided setup in the admin console shows where that setting is.
Do we still need Microsoft Entra Connect?
Yes. DTS Identity handles the sign-in for a federated Microsoft 365 domain; it does not create the accounts in Microsoft 365. Microsoft Entra Connect keeps creating the user accounts in Microsoft 365 from Active Directory, and DTS Identity syncs the same users from Active Directory through its own agent.
Do we have to move our users out of Active Directory?
No. DTS Identity syncs users and groups from Active Directory through an agent that runs inside your network and delegates authentication to the domain, so passwords stay where they are. The platform never opens a connection into your network.
Which second factors can Microsoft 365 users sign in with?
With DTS Identity, Microsoft 365 users sign in with passkeys and FIDO2 security keys, TOTP authenticator apps or SMS codes, and keep ten single-use recovery codes as a fallback. SMS codes are available from the Essential plan. From the Advanced plan, DTS Identity can also delegate the second factor to Cisco Duo or privacyIDEA.
Which Microsoft 365 domains can be federated to DTS Identity?
DTS Identity federates a domain of your own that is verified in Microsoft 365 through DNS. Microsoft does not allow federation for the default domain that ends in onmicrosoft.com. Each domain is federated separately, and the Microsoft 365 integration can be added to DTS Identity more than once, one application per domain.
Which DTS Identity plan do we need for Microsoft 365 single sign-on?
SAML single sign-on, the integration catalog, MFA with passkeys and authenticator apps and the Active Directory sync are part of every DTS Identity plan. SMS codes start at Essential; Kerberos sign-in for domain-joined Windows clients, authentication policies, network zones, alarms and third-party MFA with Cisco Duo or privacyIDEA start at Advanced. A free trial environment runs for 30 days and includes the features of the higher plans.
Try DTS Identity
Request a free trial environment or talk to our team about workforce, customer and device identity. DTS Identity is standards-based and operated in the EU.