什么是为特定用户获得角色的Azure RBAC API?
- 该服务是否提供特定的API来为用户而不是资源组/资源获得角色分配?
- 在以前的问题中,该问题被问到在这里 a>,是否有任何有关获取“ RoledeFinitionName”属性的CLI响应和API的计划?
- Does the service offer a specific API for getting a role assignments for a user and not for a resources group/resource?
- In a previous question that was asked here,are there any plans to make the CLI response and the API similar regarding getting the 'roleDefinitionName' property?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
找到了部分答案。
要为用户分配两个角色,组应使用以下API:
通过添加param
$ filter
中的值nodectedto('{userObjectId}')
。示例:
https://management.azure.com/ {scope}/providers/microsoft.authorization/roleasSignments? -version = 2015-07-01
还没有找到答案。
Found a partial answer.
For getting both role assigned for User and Group should use the following API:
By adding the param
$filter
with the value ofassignedTo('{userObjectId}')
.Example:
https://management.azure.com/{scope}/providers/Microsoft.Authorization/roleAssignments?$filter=assignedTo('{userObjectId}')&api-version=2015-07-01
Haven't find an answer yet.