Trying to streamline our MFA process by manually uploading the -Mobile attribute to Azure in powershell, so that when the user goes to do MFA, it's already filled in.
Set-AzureADUser -ObjectId $emailaddress -Mobile $cellphone
This actually worked before, but now all of a sudden I'm getting
Set-AzureADUser : Error occurred while executing SetUser
Code: Request_BadRequest
Message: Unable to update the specified properties for on-premises mastered Directory
Sync objects or objects currently undergoing migration.
We're in a hybrid environment with a one-way sync, and the "mobile" attribute is not a synced attribute for us. We set it for a few test users in AD, but it never made it to Azure. So we were doing it this way until this showed up all of a sudden. We haven't made any changes to our sync settings.
Microsoft documentation on doing exactly what I'm doing doesn't show me doing anything wrong.