[英]How to add the external user in azure active directory using graph api
I was try to add the external user in Azure active directory. 我试图将外部用户添加到Azure活动目录中。 i was added using dashboard and it's send the invitation link and user accept and set the password using link and users was added in active directory. 我是使用仪表板添加的,它发送了邀请链接,用户使用链接接受并设置了密码,并且用户已添加到活动目录中。
i was add the guest user and send the invitation link and accept link and set password in azure directory. 我是添加来宾用户并发送邀请链接并接受链接并在azure目录中设置密码的。 the globe symbol is a added user of external user 地球符号是外部用户的添加用户
but i was try to add the external user using Rest api in azure active directory. 但是我试图在Azure活动目录中使用Rest api添加外部用户。
I was check using Postman 我在用邮递员检查
i was checking in microsoft docs create invitation it given url in beta i was checked in that url and i was try to create the user in ad but the response is 我正在检查microsoft docs在给定beta版本中的url的情况下创建邀请 ,我已经在那个URL中进行了检查,我试图在广告中创建用户,但响应是
{
"error": {
"code": "BadRequest",
"message": "Invalid version",
"innerError": {
"request-id": "464934b2-8915-418e-8761-87778059692e",
"date": "2017-09-19T13:30:26"
}
}
}
i was try to create the tenant id in url but it's return 我试图在URL中创建租户ID,但返回了
{
"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"
}
}
}
and i also check in https://www.eliostruyf.com/adding-guests-to-an-office-365-group-via-the-microsoft-graph-api/ 而且我还签入https://www.eliostruyf.com/adding-guests-to-an-office-365-group-via-the-microsoft-graph-api/
it's show response return creation type invitation but i not get expected result. 它显示响应返回创建类型的邀请,但我没有得到预期的结果。
and i need for add the existing user. 我需要添加现有用户。 with or without invitation in ad. 广告中是否包含邀请。 anyone know share the info. 任何人都知道分享信息。
Thanks in Advance. 提前致谢。
The endpoint is https://graph.microsoft.com/beta/invitations : 端点为https://graph.microsoft.com/beta/invitations :
When acquiring the access token , you should also use a scope like User.Invite.All
. 获取访问令牌时 ,还应使用User.Invite.All
类的范围。
More information about the API: https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/invitation_post 有关API的更多信息: https : //developer.microsoft.com/zh-cn/graph/docs/api-reference/beta/api/invitation_post
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.