Forum Discussion
Olivier_Lumeau
Jan 16, 2025Brass Contributor
List eligible roles with PowerShell
Hi guys, does someone knows or has a script (or other thing like CLI commands or others) to List all eligible roles in Azure. And, finally, list these eligible roles from a specific user to be ab...
kyazaferr
Jan 16, 2025MCT
# Connect to Azure AD
Connect-AzureAD
# List all eligible roles for the Azure AD tenant
Get-AzureADMSPrivilegedRoleSetting | Select-Object DisplayName, RoleDefinitionId, IsEnabled, ResourceId