Global admin AlternateEmailAddress for DAP

%3CLINGO-SUB%20id%3D%22lingo-sub-234850%22%20slang%3D%22en-US%22%3EGlobal%20admin%20AlternateEmailAddress%20for%20DAP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-234850%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20all%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20unsure%20how%20to%20go%20about%20this%20and%20hope%20someone%20can%20offer%20me%20a%20suggestion.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'd%20like%20to%20report%20on%20the%20AlternateEmailAddress%20for%20all%20the%20global%20admins%20at%20each%20tenancy%20for%20which%20my%20company%20has%20DAP%20(Delegated%20Access%20Permissions).%20I%20know%20get-msoluser%20is%20probably%20the%20cmdlet%20but%20not%20sure%20how%20to%20get%20the%20list%20of%20global%20admins%20from%20all%20of%20our%20delegated%20tenancies.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20someone%20can%20help.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETIA%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAndrew%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-234850%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-237933%22%20slang%3D%22en-US%22%3ERe%3A%20Global%20admin%20AlternateEmailAddress%20for%20DAP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-237933%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20can%20use%20the%20Get-MsolRoleMember%20cmdlets%20with%20the%20-TenantId%20switch%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%20Get-MsolRoleMember%20-RoleObjectId%2062e90394-69f5-4237-9190-012177145e10%20-TenantId%20xyz%3C%2FPRE%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

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

1 Reply

You can use the Get-MsolRoleMember cmdlets with the -TenantId switch:

 

 Get-MsolRoleMember -RoleObjectId 62e90394-69f5-4237-9190-012177145e10 -TenantId xyz