Jan 14 2021 09:19 AM
Hi. I'm pretty new to PowerShell and trying out things. I'm trying to form a PowreShell script which shows list consists of Azure resource name, RBAC role, Username against it( all users included even in groups). I got to know that, we can see all users in group with this Get-AzAdGroupMember command. I tried to tweak for what I've found here in community into below, but I'm hitting to an error as shown below, I'm sure i was doing some syntax/silly mistakes, Can anyone please help me here?
Jan 15 2021 10:34 AM
Hello @printscreen,
You are using wrong parameter name it should be GroupDisplayName not DisplayName
$new=Get-AzADGroupMember -GroupDisplayName $RoleAssignments.DisplayName
Hope that helps.