我邀请用户作为成员添加到使用Microsoft Graph REST API的Active Directory中。通过Microsoft Graph检查目录邀请的兑换状态
curl -X POST \
https://graph.microsoft.com/v1.0/invitations \
-H 'authorization: Bearer ey...Jg' \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-d '{
"invitedUserEmailAddress": "[email protected]",
"inviteRedirectUrl": "https://example.com/afterInvite",
"sendInvitationMessage": false,
"invitedUserType":"Member"
}'
我确实收到了状态字段的正确响应:
“状态”:“PendingAcceptance”,
这当然是真的为用户刚刚被邀请。有没有办法查看用户是否已经兑换了邀请?
非常感谢
感谢您的回复Fei!我希望通过状态检查来获得关于邀请的信息,这将很快成为Graph的一部分。 – Alx
请在Uservoice上对此提出请求:https://officespdev.uservoice.com/forums/224641-feature-requests-and-feedback/category/101632-microsoft-graph-o365-rest-apis –