1

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?

Vnuuk
  • 6,177
  • 12
  • 40
  • 53

1 Answers1

1

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:

  1. Sync this user to Azure AD and make the user to be a member in AAD.

  2. Stop sync or after sync failed, invite this user to your AAD.

Let me know if it helps.

Wayne Yang
  • 9,016
  • 2
  • 20
  • 40
  • How I can sync this user to my Azure AD? I thought that I need to invite this user first.. – Vnuuk May 03 '18 at 08:39
  • Hi @Vnuuk . Since you're using AAD connect, you can sync this user to AAD as a member. But you can also use powershell`Start-ADSyncSyncCycle -PolicyType Initial` to sync and waite Waited until `(Get-ADSyncScheduler).SyncCycleInProgress` go back to `False`. Then you can invite the user to be a guest. – Wayne Yang May 04 '18 at 01:40
  • Can I use Graph API to sync user to AAD as a member? Or maybe there is a way to invite user not as a guest but as a member? – Vnuuk May 07 '18 at 08:08