Reputation: 6527
I've developed a software that automates Azure B2B invitation process. All works well. But we found that for some email addresses we receive 400 Bad Request response message when making invitation call to Azure.
Error message:
The object either is sourced from an on prem directory or is undergoing migration
Can't find any good info explains how I can fix this problem. And what is a reason of the problem.
Any thoughts?
Upvotes: 1
Views: 345
Reputation: 9411
I assume that you're using Azure AD Connect to sync your on-premise AD with Azure AD.
Cause: The Email you tried to invited had been in your on-premise AD and under sync. With this suituation, you cannot invite this kind user with same Email as the on-premise user's.
Solution:
Sync this user to Azure AD and make the user to be a member in AAD.
Stop sync or after sync failed, invite this user to your AAD.
Let me know if it helps.
Upvotes: 1