How to prepare existing users in your Microsoft 365 domain for federation to RM Unify
Published Date : 13 Aug 2013
Last Updated : 10 Apr 2024
Content Ref: TEC3426861
Operating System
(none)
Part No
(none)
Summary
Details the process required to unfederate your existing Microsoft 365 domain and prepare the users within for federation to RM Unify.
Symptoms
RM Cloud Service Delivery can assist you with your Microsoft® 365™ federation. For further information, please speak to your Sales representative on 01235 645 316 or email getintouch@rm.com, quoting this article.
You already have a Microsoft 365 domain populated with user accounts. Those user accounts are most likely configured with OnPremisesImmutableIds (unique references) which have come from the previous Microsoft 365 provisioning method, e.g. Azure AD Connect. These need to be removed in advance of the domain's federation to RM Unify, as RM Unify will be populating the Microsoft 365 accounts with its own ids.
If the OnPremisesImmutableId property is not empty for your desired users, the RM Unify federation will fail. Also, if the Microsoft 365 domain federation settings are already set to Federated, rather than the required Managed, then the RM Unify federation will also fail.
Cause
You may have already started the Microsoft 365 federation wizard from the App Library and progressed to the point of the compatibility checks, where the 'Domain available for SSO federation to RM Unify' check has failed.
Requirements
A Microsoft 365 global administrator account with a username on the '.onmicrosoft.com' domain, e.g. JSmith@SchoolA.onmicrosoft.com. If no global administrator account exists on your 'onmicrosoft.com' domain, please add a new user to meet the requirements by following this article - Add users and assign licenses - Microsoft 365 admin | Microsoft Docs.
Connection to a computer with Microsoft Graph Powershell SDK installed. See here for more details on prerequisites and how to install the module.
A downloaded copy of the PowerShell script, which can be found in DWN3444137 in the Other Useful Articles section below.
Procedure
This is the process to be followed for running the PowerShell script, which will unfederate the Microsoft 365 domain and clear the OnPremisesImmutableId property of all users.
Open a new PowerShell window and change the folder location to where you copied the script file.
Run the script file.
When prompted, enter your Microsoft 365 domain name - this is the domain which holds your Microsoft 365 user accounts.
When prompted, enter your Microsoft 365 domain administrator credentials. If the details entered are correct, the script will unfederate your Microsoft 365 domain and start clearing the OnPremisesImmutableIds of all users. For 1000 users this may take approximately 20 minutes.
Wait until the script runs to completion.
Once completed, you will see the message "Success - OnPremisesImmutableId cleared for <count> users".
If your domain is already unfederated, you will get the message "Domain <domain> is not federated. Do you still want to proceed with clearing user OnPremisesImmutable ID? Please enter y/n.".
Press 'y', if you want to proceed in clearing those OnPremisesImmutableIds, or 'n' to quit.
Important: After running the PowerShell script, you must wait for at least an hour before starting the Microsoft 365 wizard. This is to allow the changes to propagate around the Microsoft systems.
Possible Issues
Troubleshooting
If you see an error message like "This domain does not exist. Check the name and try again.", verify the domain name you entered for typos and try again.
If you see an error message like "The user name or password is incorrect. Verify your user name, and then type your password again.", verify the credentials you entered and try again.
If you see an error message like "OnPremisesImmutableID can't be removed as this account is a local account and not a cloud account", the account is/was previously synced with your AD using Azure AD Connect. Microsoft prevents removal of OnPremisesImmutableID where it believes the account is still AD-Synced. Please convert the affected M365 accounts to cloud accounts.
If this article has not helped provide a solution then it is also possible to
log a call...
Document Keywords: 3426861, How to prepare existing users in your Microsoft Office 365 domain for federation to RM Unify, health check, health-check, health, check, compatibility, managed, federated, Get-MsolDomainFederationSettings, Set-MsolDomainAuthentication, wizard, failed, Domain available for SSO federation to RM Unify, m365, TEC3426861