无法邀请用户加入 Azure Active Directory

Unable to invite user to Azure Active Diretory

我试图邀请来宾用户加入我的 AAD 但没有成功。我收到消息 "Unable to invite user",当我检查错误详细信息时,我得到以下消息

{"errorCode":"B2BError","localizedErrorDetails":null,"operationResults":null,"timeStampUtc":"2017-05-12T23:48:31.5694549Z","clientRequestId":"xxxxxxxxxxx","internalTransactionId":"xxxxxxxxxxx","upn":"xxxxxxxxxxx","tenantId":"xxxxxxxxxxx","userObjectId":"xxxxxxxxxxx"}

几周前我可以毫无问题地邀请用户。但是今天我收到了这个错误。我尝试了不同的租户,它工作正常。

我也尝试通过 powershell,使用 New-AzureADMSInvitation cmdlet from Azure Active Directory V2 Preview Module。同样的情况发生:一个租户工作而另一个不工作。我在 powershell 上遇到的错误是

New-AzureADMSInvitation : Error occurred while executing NewAzureADMSInvitation 
Code: Forbidden
Message: Generic authorization exception.
InnerError:
  RequestId: xxxxxxxxxxx
  DateTimeStamp: Fri, 12 May 2017 20:43:52 GMT
HttpStatusCode: Forbidden
HttpStatusDescription: Forbidden
HttpResponseStatus: Completed
At line:1 char:15
+ ... nvitation = New-AzureADMSInvitation -InvitedUserEmailAddress teste2@p ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [New-AzureADMSInvitation], ApiException
    + FullyQualifiedErrorId : Microsoft.Open.MSGraphBeta.Client.ApiException,Microsoft.Open.MSGraphBeta.PowerShell.NewAzureADMSInvitation

我什至启用了 Premium 试用版来检查它是否与免费计划有关,但问题仍然存在

有人知道这是怎么回事吗?

根据您的错误信息,也许我们应该检查您的 Azure AD 配置设置,如屏幕截图所示:

我们也可以使用 A​​zure AD 的管理员帐户 来邀请用户。