Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Get-AzureADUser

Get-AzureADUser

microsoft.azure.commands.resources.dll

Synopsis

Filters active directory users.

Syntax

Get-AzureADUser [-UserPrincipalName] [<CommonParameters>]

Get-AzureADUser [-SearchString] [<CommonParameters>]

Get-AzureADUser [-ObjectId] [<CommonParameters>]

Get-AzureADUser [-UserPrincipalName] [<CommonParameters>]

Detailed Description

Filters active directory users.

Parameters

-UserPrincipalName <String>

UPN of the user.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-SearchString <String>

The user display name

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-ObjectId <Guid>

Object id of the user.

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

-------------------------- Filters users using UPN --------------------------

Gets user with foo@domain.com

PS C:\> Get-AzureADUser -UPN foo@domain.com

-------------------------- Filters users using Search String --------------------------

Filters all ad users that has Joe in the display name.

PS C:\> Get-AzureADUser -SearchString Joe

-------------------------- List AD users --------------------------

Gets all AD users

PS C:\> Get-AzureADUser

Get-AzureADGroup
Get-AzureADServicePrincipal
Get-AzureADGroupMember