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.