如何使用图形 api 在 azure 活动目录中添加外部用户
How to add the external user in azure active directory using graph api
我尝试在 Azure 活动目录中添加外部用户。我是使用仪表板添加的,它发送邀请 link,用户接受并使用 link 设置密码,用户被添加到活动目录中。
我是添加来宾用户并发送邀请 link 并接受 link 并在 azure 目录中设置密码。地球符号是外部用户的添加用户
但我尝试在 Azure 活动目录中使用 Rest api 添加外部用户。
我正在使用 Postman 检查
我正在检查微软文档 create invitation 它在测试版中给定 url 我已经检查了那个 url 我试图在广告中创建用户但响应是
{
"error": {
"code": "BadRequest",
"message": "Invalid version",
"innerError": {
"request-id": "464934b2-8915-418e-8761-87778059692e",
"date": "2017-09-19T13:30:26"
}
}
}
我试图在 url 中创建租户 ID,但它是 return
{
"error": {
"code": "BadRequest",
"message": "Resource not found for the segment 'invites'.",
"innerError": {
"request-id": "2d940a4e-4ffe-4a3f-91e8-b94cb3536a59",
"date": "2017-09-19T13:13:49"
}
}
}
我也签到 https://www.eliostruyf.com/adding-guests-to-an-office-365-group-via-the-microsoft-graph-api/
显示响应 return 创建类型的邀请,但我没有得到预期的结果。
我需要添加现有用户。有或没有广告邀请。谁知道分享信息。
提前致谢。
终点是https://graph.microsoft.com/beta/invitations:
获取访问令牌时,您还应该使用User.Invite.All
这样的范围。
有关 API 的更多信息:https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/invitation_post
编辑
使用此 link 了解详细信息,因为上面的 link 已损坏:
https://docs.microsoft.com/en-us/graph/api/invitation-post?view=graph-rest-1.0&tabs=csharp
我尝试在 Azure 活动目录中添加外部用户。我是使用仪表板添加的,它发送邀请 link,用户接受并使用 link 设置密码,用户被添加到活动目录中。
我是添加来宾用户并发送邀请 link 并接受 link 并在 azure 目录中设置密码。地球符号是外部用户的添加用户
但我尝试在 Azure 活动目录中使用 Rest api 添加外部用户。
我正在使用 Postman 检查
我正在检查微软文档 create invitation 它在测试版中给定 url 我已经检查了那个 url 我试图在广告中创建用户但响应是
{
"error": {
"code": "BadRequest",
"message": "Invalid version",
"innerError": {
"request-id": "464934b2-8915-418e-8761-87778059692e",
"date": "2017-09-19T13:30:26"
}
}
}
我试图在 url 中创建租户 ID,但它是 return
{
"error": {
"code": "BadRequest",
"message": "Resource not found for the segment 'invites'.",
"innerError": {
"request-id": "2d940a4e-4ffe-4a3f-91e8-b94cb3536a59",
"date": "2017-09-19T13:13:49"
}
}
}
我也签到 https://www.eliostruyf.com/adding-guests-to-an-office-365-group-via-the-microsoft-graph-api/
显示响应 return 创建类型的邀请,但我没有得到预期的结果。
我需要添加现有用户。有或没有广告邀请。谁知道分享信息。
提前致谢。
终点是https://graph.microsoft.com/beta/invitations:
获取访问令牌时,您还应该使用User.Invite.All
这样的范围。
有关 API 的更多信息:https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/invitation_post
编辑
使用此 link 了解详细信息,因为上面的 link 已损坏:
https://docs.microsoft.com/en-us/graph/api/invitation-post?view=graph-rest-1.0&tabs=csharp