Skip to main content

Get-VSTeamUserProfile

SYNOPSIS​

Gets the user profile of an account.

SYNTAX​

Id​

Get-VSTeamUserProfile -Id <String> [<CommonParameters>]

Me​

Get-VSTeamUserProfile [-MyProfile] [<CommonParameters>]

DESCRIPTION​

Gets the user profile of an account.

EXAMPLES​

Example 1: Get user profile by id​

$myProfile = Get-VSTeamUserProfile -Id f6e38832-6804-464f-9cf9-4aaa97327cfc

Example 2: Get current users profile​

$myProfile = Get-VSTeamUserProfile -MyProfile

PARAMETERS​

-Id​

Gets the user profile with the given id.

Type: String
Parameter Sets: Id
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-MyProfile​

Gets all organizations where the user is the owner.

Type: SwitchParameter
Parameter Sets: Me
Aliases:

Required: True
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters​

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS​

OUTPUTS​

NOTES​

Prerequisites:

Set the account and version that all calls will use with Set-VSTeamAccount. Default version sets to API version 3.0 (TFS2017) if not manually set.

tips:

  • check called version of the API with Get-VSTeamAPIVersion or Get-VSTeamInfo
  • use Set-VSTeamDefaultProject to set default project for every call
  • use Set-VSTeamDefaultAPITimeout to change the default timeout of 60 seconds for all calls.
  • use Profiles to load an account and the correct version

Get-VSTeamUserProfile

Set-VSTeamPipelineBilling