列出给定角色定义的权限。

huangapple go评论84阅读模式
英文:

List permissions for a given role definition

问题

我找到了我的用户的角色分配列表如下:

Get-AzRoleAssignment -SignInName <email_or_userprincipalname>

从命令的输出中,我得到了一个特定的RoleDefinitionId,让我们称之为Contributor。我该如何找到Contributor角色所关联的所有权限?

我尝试过:

Get-AzureRmRoleDefinition -Id <id>

其中"id"是前一个命令中的RoleDefinitionId,但我收到了一个错误:

Get-AzureRmRoleDefinition:类型'Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient'的方法'get_SerializationSettings'在程序集'Microsoft.Azure.Commands.ResourceManager.Common,Version=4.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35'中没有实现。
英文:

I found the list role assignments for my user as follows:

Get-AzRoleAssignment -SignInName &lt;email_or_userprincipalname&gt;

From the output of the command, I am given a certain RoleDefinitionId, let's call it Contributor.
How can I find all of the permissions which the Contributor role has associated to it?


I tried:

Get-AzureRmRoleDefinition -Id &lt;id&gt;

where "id" is the RoleDefinitionId from the previous command, but I receive an error:

> Get-AzureRmRoleDefinition : Method 'get_SerializationSettings' in type
> 'Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient'
> from assembly 'Microsoft.Azure.Commands.ResourceManager.Common,
> Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
> does not have an implementation.

答案1

得分: 1

以下是已翻译的内容:

  • Microsoft.Authorization/*/Delete
  • Microsoft.Authorization/*/Write
  • Microsoft.Authorization/elevateAccess/Action
  • Microsoft.Blueprint/blueprintAssignments/write
  • Microsoft.Blueprint/blueprintAssignments/delete and * for all access
英文:

A complete list can be found here

  • Microsoft.Authorization/*/Delete
  • Microsoft.Authorization/*/Write
  • Microsoft.Authorization/elevateAccess/Action
  • Microsoft.Blueprint/blueprintAssignments/write
  • Microsoft.Blueprint/blueprintAssignments/delete and * for all access

huangapple
  • 本文由 发表于 2020年1月6日 23:56:26
  • 转载请务必保留本文链接:https://go.coder-hub.com/59615170.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定