简体   繁体   English

如何使用图形API在Azure活动目录中添加外部用户

[英]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.

相关问题 使用图形api在Azure Active目录组中搜索用户 - Search for user in Azure Active directory group using graph api 如何使用 Microsoft Graph api 从 azure 活动目录中获取所有用户属性 - How to get all user attributes from azure active directory using Microsoft Graph api 如何使用图谱API在Azure活动目录中创建自定义角色? - How to create custom role in azure active directory using graph api? 使用http post请求使用Graph API在Azure Active Directory(B2C)中创建新用户 - Create a new user in Azure Active Directory (B2C) with Graph API, using http post request 使用图表 API 将成员添加到 azure 活动目录中的组会给出 URl 无效错误 - Add Members to group in azure active directory using Graph API gives URl invalid error 使用图形api以编程方式在azure活动目录中注册应用程序 - Programmatically register app in azure active directory using graph api 使用图API API在Azure Active Directory中创建应用程序失败 - Create application in Azure Active Directory using graph API fails Azure Active Directory Api-将用户添加到组失败 - Azure Active Directory Api - Add user To Group Fails 如何使用Azure Active Directory图谱API获取属于AppRole的所有用户 - How to get all users that belong in an AppRole using Azure Active Directory Graph API 使用Active Directory图形API的用户电子邮件地址操作 - User Email Address Operations using Active Directory Graph API
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM