Migrate from federation to Microsoft Entra certificate-based authentication (CBA)
This article explains how to migrate from running federated servers such as Active Directory Federation Services (AD FS) on-premises to cloud authentication using Microsoft Entra certificate-based authentication (CBA).
Staged Rollout
A tenant admin could cut the federated domain fully over to Microsoft Entra CBA without pilot testing by enabling the CBA auth method in Microsoft Entra ID and converting the entire domain to managed authentication. However if customer wants to test a small batch of users authenticate against Microsoft Entra CBA before the full domain cutover to managed, they can make use of staged rollout feature.
Staged Rollout for Certificate-based Authentication (CBA) helps customers transition from performing CBA at a federated IdP to Microsoft Entra ID by selectively moving small set of users to use CBA at Microsoft Entra ID (no longer being redirected to the federated IdP) with selected groups of users before then converting the domain configuration in Microsoft Entra ID from federated to managed. Staged rollout is not designed for the domain to remain federated for long periods of time or for large amounts of users.
Watch this quick video demonstrating the migration from ADFS certificate-based authentication to Microsoft Entra CBA
Note
When Staged rollout is enabled for a user, the user is considered a managed user and all authentication will happen at Microsoft Entra ID. For a federated Tenant, if CBA is enabled on Staged Rollout, password authentication only works if PHS is enabled too otherwise password authentication will fail.
Enable Staged Rollout for certificate-based authentication on your tenant
Tip
Steps in this article might vary slightly based on the portal you start from.
To configure Staged Rollout, follow these steps:
- Sign in to the Microsoft Entra admin center as at least an User Administrator.
- Search for and select Microsoft Entra Connect.
- On the Microsoft Entra Connect page, under the Staged Rollout of cloud authentication, click Enable Staged Rollout for managed user sign-in.
- On the Enable Staged Rollout feature page, click On for the option Certificate-based authentication
- Click Manage groups and add groups you want to be part of cloud authentication. To avoid a time-out, ensure that the security groups contain no more than 200 members initially.
For more information, see Staged Rollout.
Use Microsoft Entra Connect to update certificateUserIds attribute
An AD FS admin can use Synchronization Rules Editor to create rules to sync the values of attributes from AD FS to Microsoft Entra user objects. For more information, see Sync rules for certificateUserIds.
Microsoft Entra Connect requires a special role named Hybrid Identity Administrator, which grants the necessary permissions. You need this role for permission to write to the new cloud attribute.
Note
If a user is using synchronized attributes, such as the onPremisesUserPrincipalName attribute in the user object for username binding, be aware that any user that has administrative access to the Microsoft Entra Connect server can change the synchronized attribute mapping, and change the value of the synchronized attribute. The user does not need to be a cloud admin. The AD FS admin should make sure the administrative access to the Microsoft Entra Connect server should be limited, and privileged accounts should be cloud-only accounts.
Frequently asked questions about migrating from AD FS to Microsoft Entra ID
Can we have privileged accounts with a federated AD FS server?
Although it's possible, Microsoft recommends privileged accounts be cloud-only accounts. Using cloud-only accounts for privileged access limits exposure in Microsoft Entra ID from a compromised on-premises environment. For more information, see Protecting Microsoft 365 from on-premises attacks.
If an organization is a hybrid running both AD FS and Azure CBA, are they still vulnerable to the AD FS compromise?
Microsoft recommends privileged accounts be cloud-only accounts. This practice will limit the exposure in Microsoft Entra ID from a compromised on-premises environment. Maintaining privileged accounts a cloud-only is foundational to this goal.
For synchronized accounts:
- If they're in a managed domain (not federated), there's no risk from the federated IdP.
- If they're in a federated domain, but a subset of accounts is being moved to Microsoft Entra CBA by Staged Rollout, they're subject to risks related to the federated Idp until the federated domain is fully switched to cloud authentication.
Should organizations eliminate federated servers like AD FS to prevent the capability to pivot from AD FS to Azure?
With federation, an attacker could impersonate anyone, such as a CIO, even if they can't obtain a cloud-only role like a highly privileged administrator account.
When a domain is federated in Microsoft Entra ID, a high level of trust is being placed on the Federated IdP. AD FS is one example, but the notion holds true for any federated IdP. Many organizations deploy a federated IdP such as AD FS exclusively to accomplish certificate based authentication. Microsoft Entra CBA completely removes the AD FS dependency in this case. With Microsoft Entra CBA, customers can move their application estate to Microsoft Entra ID to modernize their IAM infrastructure and reduce costs with increased security.
From a security perspective, there's no change to the credential, including the X.509 certificate, CACs, PIVs, and so on, or to the PKI being used. The PKI owners retain complete control of the certificate issuance and revocation lifecycle and policy. The revocation check and the authentication happen at Microsoft Entra ID instead of federated Idp. These checks enable passwordless, phishing-resistant authentication directly to Microsoft Entra ID for all users.
How does authentication work with Federated AD FS and Microsoft Entra cloud authentication with Windows?
Microsoft Entra CBA requires the user or application to supply the Microsoft Entra UPN of the user who signs in.
In the browser example, the user most often types in their Microsoft Entra UPN. The Microsoft Entra UPN is used for realm and user discovery. The certificate used then must match this user by using one of the configured username bindings in the policy.
In Windows sign-in, the match depends on if the device is hybrid or Microsoft Entra joined. But in both cases, if username hint is provided, Windows will send the hint as a Microsoft Entra UPN. The certificate used then must match this user by using one of the configured username bindings in the policy.