< Back

Get-AADIntUserTenants

Fri Jan 10, 2020 5:53 pm

NAME Get-AADIntUserTenants



SYNOPSIS

Returns tenants the given user is member of





SYNTAX

Get-AADIntUserTenants [[-AccessToken] <Object>] [<CommonParameters>]





DESCRIPTION

Returns tenants the given user is member of using Azure Management API





PARAMETERS

-AccessToken <Object>



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>$at=Get-AccessTokenForAzureMgmtAPI -Credentials $cred



PS C:\\> Get-UserTenants -AccessToken $at

Get-AADIntLoginInformation -Domain outlook.com



id : 3087e687-0d37-4c21-87c5-ecac88f0374a

domainName : company.onmicrosoft.com

displayName : Company Ltd

isSignedInTenant : True

tenantCategory :



id : 2968be53-ede5-4e30-844a-96d66479fb10

domainName : company2.onmicrosoft.com

displayName : Company2

isSignedInTenant : False

tenantCategory :











RELATED LINKS