Adding or Converting a Domain for SSO
Each domain that will be used for SSO with Lync Online/Office 365 must either be added as an SSO domain or be converted from a standard domain to SSO. The Microsoft Online Services Module is used to add or convert the domain, which sets up a trust between the internal AD FS deployment and Office 365.
Use the following procedure to add a new domain for SSO:
1. Open the Microsoft Online Services Module.
2. Execute the command
$cred=Get-Credential, and then at the prompt enter the credentials of an Office 365 administrative account.
3. Execute the command
Connect-MsolService -Credential $cred, which creates a connection to Office 365, as required to run the remaining cmdlets.
4. Execute the command