How do I remove AuthAnvil SSO Federation from an Office 365 Domain?

Note: In the latest version of AuthAnvil Single Sign On there is a built-in function for removing SSO from Office 365 and reverting back to static passwords. The steps below refer to a process required in older versions of the software.

In order to remove SSO from your domain you will need the Microsoft Online Service Module for Windows PowerShell (the PowerShell bits for Office 365). You can download this module from Microsoft at

Once installed, you can connect in to your Office 365 account using the following commands:


Import-Module msonline
Set-MsolDomainAuthentication -Authentication Managed -DomainName <>

(Note: Do not use convert-MsolDomainToStandard as this command is only used with ADFS 2.0. It will not work to convert an AuthAnvil Single Sign On federated domain. Type get-help Set-MsolDomainAuthentication -detailed for more information on this command.)


This process will prompt for your * account credentials to set the defined domain name ( back to standard passwords instead of federated single-sign on. You may need to reset your users' passwords after setting the domain back.

As a last step you may wish to run the following command to convert all federated users back to standard password users, resetting their passwords automatically:

Get-MsolUser | Convert-MsolFederatedUser



If you have any questions or need some help, we would be happy to assist. Open a case at or send an email to

Have more questions?

Contact us

Was this article helpful?
0 out of 0 found this helpful

Provide feedback for the Documentation team!

Browse this section