Disconnecting AAoD from your Federated Office 365 domain.
- Log into your On-Demand Tenant.
- Select SSO Manager.
- Select the Office 365 app.
- Uncheck Manage Office 365 Federation Automatically.
- Select Disconnect AuthAnvil.
Note: Disconnecting Office 365 could take up to 72 hours to complete as Microsoft's servers replicate the changes.
If that fails to disconnect then please see the following.
To remove federation manually you will need to do it via PowerShell.
Open Powershell as an administrator then run these commands:
Install-Module -Name AzureAD
Connect-MsolService (Prompts for a logon, requires .onmicrosoft account)
Set-MsolDomainAuthentication -Authentication Managed -DomainName <YourDomain.com>
This process will prompt for your *.onmicrosoft.com account credentials to set the defined domain name (YourDomain.com) back to standard passwords instead of federated single-sign on.