什么是为特定用户获得角色的Azure RBAC API?

发布于 2025-02-05 16:59:37 字数 289 浏览 3 评论 0原文

  1. 该服务是否提供特定的API来为用户而不是资源组/资源获得角色分配?
  2. 在以前的问题中,该问题被问到在这里 a>,是否有任何有关获取“ RoledeFinitionName”属性的CLI响应和API的计划?
  1. Does the service offer a specific API for getting a role assignments for a user and not for a resources group/resource?
  2. 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

离线来电— 2025-02-12 16:59:39

找到了部分答案。

  1. 要为用户分配两个角色,组应使用以下API:
    通过添加param $ filter中的值nodectedto('{userObjectId}')
    示例:

    https://management.azure.com/ {scope}/providers/microsoft.authorization/roleasSignments? -version = 2015-07-01

  2. 还没有找到答案。

Found a partial answer.

  1. For getting both role assigned for User and Group should use the following API:
    By adding the param $filter with the value of assignedTo('{userObjectId}').
    Example:

    https://management.azure.com/{scope}/providers/Microsoft.Authorization/roleAssignments?$filter=assignedTo('{userObjectId}')&api-version=2015-07-01

  2. Haven't find an answer yet.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文