Jun 23 2021 06:16 PM
I get this error:
Cannot convert 'System.Object[]' to the type 'System.String' required by parameter 'ObjectId'. Specified method is not | supported.'
Trying to pass this variable to Get-AzureADDirectoryRoleMember , I think I'm missing how to add "" somewhere in "-ObjectId $admins.ObjectId"?
code:
$admins = Get-AzureADDirectoryRole | where{$_.displayname -like "*administrator"}
Get-AzureADDirectoryRoleMember -ObjectId $admins.ObjectId
Jun 23 2021 11:37 PM
SolutionJul 14 2024 10:03 AM
@VasilMichevIt sloved my issue, thanks for posting solution
Jun 23 2021 11:37 PM
Solution