Need to change Domain from Federated to Managed

LD Marwah 0 Reputation points
2023-11-27T04:59:40.8+00:00

I have changed my domain from managed to federated and all the users are now experiencing login issues now. My primary domain is the onmicrosoft.com one and I can access azure portal using my domain and onmicrosoft.com. I'm the global admin. Is there a way to change my domain from federated to manage via GUI? I'm not able to login anymore via PowerShell.

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
24,635 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sandeep G-MSFT 20,881 Reputation points Microsoft Employee Moderator
    2023-11-27T11:50:23.2833333+00:00

    @LD Marwah

    Thank you for posting this in Microsoft Q&A.

    As I understand you have changed the domain from managed to federated. Now all users are experiencing issues with authentication. You want to move the domain back from federated to managed.

    There is no way to perform this via GUI. You will have to run PowerShell commands to convert domain from federated to managed.

    To perform this all you need is access to federation server and global admin account which has ".onmicrosoft.com" suffix.

    You can run below commands in PowerShell from the device which is a federation server.

    • Open Windows PowerShell as administrator.
    • Run command "Install-Module MSOnline"

    Connect to Azure AD using below commands.

    • Connect-Msolservice (Enter global admin credentials which has ".onmicrosoft.com" suffix.)
    • Convert-MsolDomainToStandard -DomainName <DomainName> (You will have to run this command if you are using ADFS for federation)

    If you are using any other identity provider for federation then you can replace above last command with below command,

    • Set-MsolDomainAuthentication -DomainName <DomainName> -Authentication Managed

    Let me know if you have any further questions.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    2 people found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.