azureazure-devopsazure-powershellazure-cli

Is there a way to show displayName with Get-AzRoleAssignment


Hello I am trying to get a list of all my role assignments after resource deployment in my CI/CD pipeline. However the displayName field is always empty in my response. I am using:

Get-AzRoleAssignment -scope $res_id

I have tried using object ids instead and it is the same. I wonder why displayName is left blank? Does anyone know how to retrieve the displayName?


Solution

  • The following permission Directory.Read.All was added by my Azure AD and Graph supervisor and that solved the problem. Thanks so much for inputs