我正在使用 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"
}