Thank you for posting this in Microsoft Q&A.
As I understand you are trying to stop sync for one of the user in your environment and make the immutable ID as null.
This can be achieved by moving the user in on-premises to non-sync OU. Run sync post moving the object to non-sync OU. After this in Azure AD this user will be moved to deleted container. You can manually go to deleted users in Azure AD and restore the user.
This step will only change the "on-premises synchronization" status from "Yes" to "No". You will still be able to see the value stamped under "Immutable ID" attribute.
To clear this value, you can run below commands in PowerShell
- Open Windows PowerShell as administrator.
- Run command Install-Module AzureAD
- Once it installs the module, you can run below commands.
- Connect-AzureAD (Enter global admin credentials once it prompts)
- Run command "Set-AzureADUser -ObjectId "UPN of user object" -ImmutableId null"
- Above command will change the immutable ID value to Null.
- You can confirm it by running command "Get-AzureADUser -ObjectId "UPN of user object" | fl"
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.