我使用MS Graph和Azure B2B邀请我的AD中的访客用户。对于某些电子邮件,它完美无缺。但对于某些电子邮件,Graph API会发送错误请求响应:
The object either is sourced from an on prem directory or is undergoing migration
图谱API端点
https://graph.microsoft.com/v1.0/invitations
请求正文示例
{
"InvitedUserDisplayName":"TEST",
"InvitedUserEmailAddress":"testemail@mail.com",
"SendInvitationMessage":false,
"InviteRedirectUrl":"https://google.com",
"InvitedUserMessageInfo":{
"CustomizedMessageBody":"TEST",
"AdditionalData":{
"@odata.type":"microsoft.graph.invitedUserMessageInfo"
}
},
"Cc":"test@yandex.ru",
"SenderName":"TEST",
"SenderEmail":"test@mail.net"
}
答案 0 :(得分:0)
在Microsoft中创建了票证。他们指出我已将这些帐户添加到我的AAD租户中。因此,删除它可以解决问题。