使用自动脚本将来宾用户添加到Azure AD吗? [英] Adding guest users to Azure AD with an automated script?

查看:58
本文介绍了使用自动脚本将来宾用户添加到Azure AD吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过自动方式将来宾用户添加到Azure AD?

Is there a way to add guest users to Azure AD in an automated way?

该过程应如下所示:

  1. 用户正在通过表格将其Microsoft地址(例如john_doe@hotmail.com)发送到我们的Web服务
  2. 该服务随后通过使用功能邀请用户" 将该用户添加到Azure AD.
  1. A user is sending his microsoft address (e.g. john_doe@hotmail.com) via a form to our web service
  2. The service is then adding this user to Azure AD by using the functionality "Invite User".

是否可以自动执行此操作?

Is it possible to automate this?

推荐答案

应用程序可以使用Microsoft Graph创建Azure AD B2B邀请.受邀用户仍然需要在某些时候进行邀请兑换过程.

An application can create Azure AD B2B invitations using Microsoft Graph. The invited user will still at some point have to go through the invitation redemption process.

从文档中复制示例:

POST https://graph.microsoft.com/v1.0/invitations
Content-type: application/json

{
  "invitedUserEmailAddress": "yyy@example.com",
  "inviteRedirectUrl": "https://myapp.com"
}

要以应用程序的身份发出此请求,应用程序需要仅应用程序权限 User.Invite.All .

To make this request under the identity of the application, the application requires the app-only permission User.Invite.All.

详细记录在:

这篇关于使用自动脚本将来宾用户添加到Azure AD吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆