Skip to content

AzDoAPI_2_UserCache

github-actions[bot] edited this page Aug 18, 2026 · 1 revision

SYNOPSIS

Initializes and populates the user cache for Azure DevOps.

SYNTAX

AzDoAPI_2_UserCache [[-OrganizationName] <String>] [<CommonParameters>]

DESCRIPTION

The AzDoAPI_2_UserCache function initializes and populates the user cache by retrieving user information from Azure DevOps. It uses the provided organization name or a global variable if no organization name is provided. The function retrieves the user list, adds each user to the cache, and then exports the cache to a file.

EXAMPLES

EXAMPLE 1

AzDoAPI_2_UserCache -OrganizationName "MyOrganization"
This example initializes and populates the user cache for the specified Azure DevOps organization "MyOrganization".

PARAMETERS

-OrganizationName

The name of the Azure DevOps organization. If not provided, the function will use the global variable $Global:DSCAZDO_OrganizationName.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
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

  • This function uses the List-UserCache cmdlet to retrieve the list of users.
  • Each user is added to the cache using the Add-CacheItem cmdlet.
  • The cache is exported to a file using the Export-CacheObject cmdlet.
  • Verbose output is provided to indicate the progress and actions of the function.

RELATED LINKS

Commands

Resources

Clone this wiki locally