azure:azure_iam

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
azure:azure_iam [2025/10/01 16:20] mmuzeazure:azure_iam [2025/10/02 20:52] (current) – [Working With Roles] mmuze
Line 81: Line 81:
  
 ====== Working With Roles ====== ====== Working With Roles ======
 +
 +Get the Azure Roles assigned to a user.
 +<code>
 +Get-AzRoleAssignment -SigninName "Michael.Gupton@xyz.org" | select RoleDefinitionName, Scope
 +</code>
 +
 <code> <code>
 az role assignment list --assignee "Michael.Gupton@xyz.org" az role assignment list --assignee "Michael.Gupton@xyz.org"
 </code> </code>
  
 +=== Get Roles that have a permission ===
 +
 +<code>
 +Get-AzRoleDefinition | Where-Object {
 +    $_.Actions -match "Microsoft.Authorization/policyAssignments"
 +}
 +</code>
 ====== Related ====== ====== Related ======
   * [[azure:service_principles|Service Principles]]   * [[azure:service_principles|Service Principles]]
   * [[azure:Authentication and Authorization Examples]]   * [[azure:Authentication and Authorization Examples]]
  
  • azure/azure_iam.1759335613.txt.gz
  • Last modified: 2025/10/01 16:20
  • by mmuze