Get-MsolAdministrativeUnitMember

Note



  • The cmdlets were previously known as the Microsoft Online Services Module for Windows PowerShell cmdlets.

The Get-MsolAdministrativeUnitMember cmdlet is used to retrieve the members of the specified administrative unit.

Syntax

Get-MsolAdministrativeUnitMember -AdministrativeUnitObjectId <Guid> [-SearchString <String>] [-MaxResults <Int>] [-TenantId <Guid>] [<Commonparameters>]

Get-MsolAdministrativeUnitMember -AdministrativeUnitObjectId <Guid> [-SearchString <String>] -All [-TenantId <Guid>] [<Commonparameters>]

Parameters

    -All 
        If present then all results will be returned.  Cannot be used with the MaxResults parameter.
        
        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false
        
    -AdministrativeUnitObjectId <Guid>
        The ID of the administrative unit to retrieve members for.
        
        Required?                    true
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false
        
    -MaxResults <int>
        The maximum number of results returned for a search result. 
        
        Required?                    false
        Position?                    named
        Default value                250
        Accept pipeline input?       false
        Accept wildcard characters?  false
        
    -SearchString <string>
        The string to search on. Only objects with a display name or email 
        address starting with this string will be returned.
        
        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false
        
    -TenantId <Guid>
        The unique ID of the tenant to perform the operation on. If this is 
        not provided, then the value will default to the tenant of the    
        current user. This parameter is only applicable to partner users.
        
        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       true (ByPropertyName)
        Accept wildcard characters?  false
        
    <CommonParameters>
        This cmdlet supports the common parameters: Verbose, Debug,
        ErrorAction, ErrorVariable, WarningAction, WarningVariable,
        OutBuffer and OutVariable. For more information, type,
        "get-help about_commonparameters".

Examples

In the following example, the command will return all members of the administrative unit “West Coast”.

$au = Get-MsolAdministrativeUnit -searchstring “West Coast”
Get-MsolAdministrativeUnitMember -AdministrativeUnitObjectId $au.ObjectId

Additional Resources

There are several other places you can get more information and help. These include:

See Also

Other Resources

Using Administrative Units - Public Preview
Manage Azure Active Directory by using Windows PowerShell