Get-​Azure​Rm​AD​User

Filters active directory users.

Syntax

Get-AzureRmADUser
   [-UserPrincipalName <String>]
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
Get-AzureRmADUser
   -UserPrincipalName <String>
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
Get-AzureRmADUser
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   -SearchString <String>
Get-AzureRmADUser
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   -ObjectId <Guid>
Get-AzureRmADUser
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   -Mail <String>

Description

Filters active directory users.

Examples

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

@{paragraph=PS C:\>}

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

Gets user with foo@domain.com

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

@{paragraph=PS C:\>}

PS C:\> Get-AzureRmADUser -SearchString Joe

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

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

@{paragraph=PS C:\>}

PS C:\> Get-AzureRmADUser

Gets all AD users

Required Parameters

-Mail
Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ObjectId

Object id of the user.

Type:Guid
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-SearchString

The user display name

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-InformationAction

Specifies how this cmdlet responds to an information event.The acceptable values for this parameter are:- Continue

  • Ignore
  • Inquire
  • SilentlyContinue
  • Stop
  • Suspend
Type:ActionPreference
Aliases:infa
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InformationVariable

Specifies an information variable.

Type:String
Aliases:iv
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-UserPrincipalName

UPN of the user.

Type:String
Aliases:UPN
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False