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
az ad user show --id <userUPN> --query "assignedRoles"
az ad role list --query "[].{RoleName:displayName, RoleId:id}" --output table