Skip to content

AzDoAPI_5_PermissionsCache

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

SYNOPSIS

Initializes and caches the permissions for Azure DevOps security namespaces.

SYNTAX

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

DESCRIPTION

The AzDoAPI_5_PermissionsCache function retrieves the security namespaces for a specified Azure DevOps organization and caches the permissions. If no organization name is provided, it uses a global variable for the organization name. The function then exports the cached permissions to a file.

EXAMPLES

EXAMPLE 1

AzDoAPI_5_PermissionsCache -OrganizationName "MyOrganization"
This example initializes and caches the permissions for the "MyOrganization" Azure DevOps organization.

EXAMPLE 2

AzDoAPI_5_PermissionsCache
This example initializes and caches the permissions using the global organization name variable.

PARAMETERS

-OrganizationName

The name of the Azure DevOps organization. This parameter is optional. If not provided, the function uses 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 requires the List-DevOpsSecurityNamespaces, Add-CacheItem, and Export-CacheObject cmdlets to be available in the session.

RELATED LINKS

Commands

Resources

Clone this wiki locally