gpt4 book ai didi

azure-active-directory - 通过 Microsoft Graph 检查目录邀请的兑换状态

转载 作者:行者123 更新时间:2023-12-01 12:20:48 26 4
gpt4 key购买 nike

我正在使用 Microsoft Graph REST API 邀请用户作为成员添加到我的 Active Directory。

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": "userInvite@hotmail.com",
"inviteRedirectUrl": "https://example.com/afterInvite",
"sendInvitationMessage": false,
"invitedUserType":"Member"
}'

我确实收到了状态字段的正确响应:

"status": "PendingAcceptance",



这当然是正确的,因为用户刚刚被邀请。有没有办法查看用户是否已经兑换了邀请?

非常感谢

最佳答案

Microsoft Graph 不支持检查受邀用户的状态。但是,我们可以使用 Azure AD 报告 API 来检查此状态。
要获得这个状态,我们可以通过获取 更新用户 事件并检查 UserState 来实现目标。
有关 Azure AD 报告 API 的更多详细信息,请参阅 link

Note:Actions don’t appear immediately in the audit activity log. It can take anywhere from 30 minutes to an hour to see the audit logs in the Azure portal from the time the operation is performed.

Wait for 30 minutes to an hour and see if the actions appear in the activity log.

关于azure-active-directory - 通过 Microsoft Graph 检查目录邀请的兑换状态,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44184587/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com