Aug 21 2018 11:31 AM
Hello all
I'm unsure how to go about this and hope someone can offer me a suggestion.
I'd like to report on the AlternateEmailAddress for all the global admins at each tenancy for which my company has DAP (Delegated Access Permissions). I know get-msoluser is probably the cmdlet but not sure how to get the list of global admins from all of our delegated tenancies.
Hope someone can help.
TIA
Andrew
Aug 26 2018 11:05 PM
You can use the Get-MsolRoleMember cmdlets with the -TenantId switch:
Get-MsolRoleMember -RoleObjectId 62e90394-69f5-4237-9190-012177145e10 -TenantId xyz