可以在Azure ad Roleassignement的列表中查找ServicePrincipal
我正在尝试获取图形API的所有Azure广告角色成员的列表。具有该角色的用户和团体将正确显示。但是也应该有一个职位的服务主体,但我找不到图形API。有人知道为什么&也许也如何获得ServicePrincipal?
我测试了两个端点选项: https://graph.microsoft.microsoft.com/v1.0/directoryroles /{id}/成员
Azure Portal中的设置:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确保在运行查询之前具有以下权限:
注意:在您运行上述查询时,仅显示主动分配。
要详细了解更多信息,您可以参考本文为服务主体授予的列表AmploeSignments -Microsoft Graph V1.0 。
Make sure to have below permissions before running the query :
Note: That only active assignments will be displayed in response when you ran the above query.
To know more in detail, you can refer this article List appRoleAssignments granted for a service principal - Microsoft Graph v1.0 .