< Back

Get-AzDoUsers

Sat Jan 18, 2020 7:40 pm

NAME Get-AzDoUsers



SYNOPSIS

This command retrieve Users from Azure DevOps





SYNTAX

Get-AzDoUsers [-AzDoConnection <AzDoConnectObject>] [-ApiVersion <String>] [-UserId <Guid>] [<CommonParameters>]



Get-AzDoUsers [-AzDoConnection <AzDoConnectObject>] [-ApiVersion <String>] [-UserName <String>]

[<CommonParameters>]



Get-AzDoUsers [-AzDoConnection <AzDoConnectObject>] [-ApiVersion <String>] [-UserEmail <String>]

[<CommonParameters>]





DESCRIPTION

The command will retrieve Azure DevOps users (if they exists)





PARAMETERS

-AzDoConnection <AzDoConnectObject>

Common Parameters



Required? false

Position? named

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-ApiVersion <String>

Allows for specifying a specific version of the api to use (default is 5.0)



Required? false

Position? named

Default value $global:AzDoApiVersion

Accept pipeline input? false

Accept wildcard characters? false



-UserName <String>

The name of the the user to retreive



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-UserEmail <String>

The email of the user to retrieve



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-UserId <Guid>

The userid of the user to retrieve



Required? false

Position? named

Default value [Guid]::Empty

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:\\>Get-AzDoUsers













-------------------------- EXAMPLE 2 --------------------------



Get-AzDoUsers -UserEmail <user email address>













-------------------------- EXAMPLE 3 --------------------------



Get-AzDoUsers -UserName <user name>













-------------------------- EXAMPLE 4 --------------------------



Get-AzDoUsers -UserId <user id>















RELATED LINKS

https://github.com/ravensorb/Posh-AzureDevOps