azure - Azure AD 设置的 Azure REST API
问题描述
我需要通过 API 从 Azure AD 获取有关已配置用户设置的信息。我正在寻找有关“来宾可以邀请”设置为“否”或“成员可以邀请”设置为“否”信息的请求您能否提供有关我的目的所需的 API 调用的信息?
解决方案
您可以使用 Azure Powershell 来实现此目的:
遗憾的是,目前还无法直接调用 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
希望这可以帮助!
推荐阅读
- python - Discord Bot + Google Cloud Run:“容器无法启动。”
- php - 您可以在按钮 onclick 标记中包含 PHP 变量吗?
- vue.js - vuejs中计算属性计算的替代方法
- java - 如何在使用 bouncycastle 签名之前添加 ASN.1 扩展?
- php - 如何在 HTML/PHP(WordPress 和 Woocommerce)中引用自定义产品类型值
- python - 使用应用脚本将 MS Word 文件(保存在云端硬盘中)转换为 Google Docs
- python - 对 lmfit.minimize 中的参数设置条件
- c - 如何在编译时正确确定支持 _Float16?
- reactjs - 每个下拉选项的工具提示
- python - pymol 没有从终端启动