ruudmens / LazyAdmin

SysAdmin scripts for you to use.
MIT License
606 stars 216 forks source link

Get-AzureADServiceAppRoleAssignment cannot get the existing User #2

Closed EdwardCKC closed 9 months ago

EdwardCKC commented 3 years ago

I use azure runbook, Grant right: Access control

Still cannot get the existing user by Get-AzureADServiceAppRoleAssignment which the $existingUsers is empty

But I run the script fully success on localhost by using Credential.

Am I missed any permission needed?

Get-AzureADuser,Get-AzureADServicePrincipal,Get-AzureADUser,New-AureADUserAppRoleAssignment: All work

Only Get-AzureADServiceAppRoleAssignment not work.