azure - Azure Active Directory - 获取租户列表
问题描述
我知道 Powershell cmdlet Get-AzTenant和REST API 调用 GET https://management.azure.com/tenants?api-version=2019-06-01
来查询 AD 租户 wrt 当前用户上下文。
由于这需要使用 Azure 资源管理的 user_impersonation,是否有替代方法,即 Microsoft Graph?
使用此租户列表的示例
解决方案
No, there is no such API in Microsoft Graph or Azure AD Graph.
I want to use the an API that needs less permissions than user_impersonation wrt management.azure.com.
Besides, I think the delegated permission user_impersonation
is not large, when the user login the app and consent the permission, the app just calls the API as the user. The permissions are all from and decided by the user, not the app.
推荐阅读
- php - 将导航菜单添加到我的产品页面操作中
- domain-driven-design - 发布一个通用失败事件并将数据附加到它或发布多个特定失败事件
- arrays - Kotlin - 如何将字符串拆分为数字和字符串?
- python - 如何从另一个应用程序更新 Django 模型?
- reactjs - 如果来自另一个组件的数据,如何禁用下拉选项
- arrays - 我们什么时候随便移出指针区域在 C 中是安全的?
- c# - 如何找到两个轴对齐立方体之间交集的体积和顶点?
- java - 使用 Java MethodChannel 在 Flutter 中运行 bytedeco tesseract 时应用程序崩溃
- go - 破坏对编码 pkg 的依赖。代码从一天到另一天都不起作用。升级失败?(编辑:不!失败的用户。请看我的回答)
- nginx - nginx + k8s:不更新环境变量