首页 > 解决方案 > Azure AD 设置的 Azure REST API

问题描述

我需要通过 API 从 Azure AD 获取有关已配置用户设置的信息。我正在寻找有关“来宾可以邀请”设置为“否”或“成员可以邀请”设置为“否”信息的请求您能否提供有关我的目的所需的 API 调用的信息?

标签: azure

解决方案


您可以使用 Azure Powershell 来实现此目的:

https://docs.microsoft.com/en-us/azure/active-directory/b2b/delegate-invitations#assign-the-guest-inviter-role-to-a-user

遗憾的是,目前还无法直接调用 Microsoft Graph 来添加应用角色分配。请关注 GitHub 问题:https ://github.com/microsoftgraph/microsoft-graph-docs/issues/4155以获得官方回复。

可以通过 AddDirectoryRole API 向用户添加新的目录角色:https ://docs.microsoft.com/en-us/graph/api/directoryrole-post-members?view=graph-rest-1.0&tabs= javascript

希望这可以帮助!


推荐阅读