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
If this answers your query, do click `Accept Answer`
and `Yes`