无法邀请用户加入Azure Active Diretory

时间:2017-05-13 00:11:59

标签: azure-active-directory azure-powershell

我试图邀请访客用户访问我的AAD但没有成功。我收到消息“无法邀请用户”,当我检查错误详细信息时,我得到以下内容

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

几个星期前,我能够毫无问题地邀请用户。但今天我收到了这个错误。我尝试了一个不同的租户,它工作正常。

我还尝试使用来自New-AzureADMSInvitationAzure Active Directory V2 Preview Module cmdlet来使用powershell。同样的事情发生了:一个租户工作,另一个没有。我在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试用版以检查它是否与免费套餐有关,但问题仍然存在

有人知道最近发生了什么吗?

1 个答案:

答案 0 :(得分:1)

根据您的错误消息,也许我们应该检查您的Azure AD配置设置,如屏幕截图: enter image description here
enter image description here

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