Getting source anchor error while creating a user

Lavanya Poreddy 0 Reputation points
2025-04-23T18:55:57.4233333+00:00

Hi

I am trying to create a user ( internal engineer) with the domain name same as the organization name( asksheldon.ai) and not able to create the user because of source anchor error.

Screenshot 2025-04-23 at 11.55.01 AM.png

Additionally, I am not able to make my domain primary as well.

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vigneshwar Duvva 2,300 Reputation points Microsoft External Staff Moderator
    2025-04-24T00:30:31.3533333+00:00

    Hello @Lavanya Poreddy

    As per error we have identified you are using federated domain to create a user which throws the above error. Federated domain does not allow creating direct user unless it has a source instance.

    As I understand you have changed the domain from managed to be 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 Entra AD using below commands.

    Connect-MgGraph (Enter global admin credentials which has ".onmicrosoft.com" suffix.) Remove-MgDomainFederationConfiguration -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,

    New-MgDomainFederationConfiguration -DomainName <DomainName> -Authentication Managed

    Let me know if you have any further questions.

    If you want to create user with the domain name as the organization name, you need to have the Onmicrosoft.com domain suffix. or create the user in on-premises and run the sync

    Reference: https://learn.microsoft.com/en-us/microsoft-365/troubleshoot/domain-management/cannot-assign-federated-domain-to-user

    If this answers your query, do click `Accept Answer` and `Yes`


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.