For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get-RDMUserTag

Synopsis

Retrieve user tags.

Syntax

__AllParameterSets

Get-RDMUserTag [[-User] <IPSUser>] [-ForcePromptAnswer <DialogResult[]>] [<CommonParameters>]

Description

Retrieve user tags as a list of names, system tags first. Without the User parameter, returns every user tag available in the workspace; with it, returns the tags assigned to that user. Requires the permission to view users.

Examples

Example 1

PS C:\> Get-RDMUserTag

Retrieves every user tag available in the workspace.

Example 2

PS C:\> $user = Get-RDMUser -Name 'jdoe'
PS C:\> $tags = @(Get-RDMUserTag -User $user)
PS C:\> $tags += 'Contractor-2026'
PS C:\> Set-RDMUserTag -User $user -Tag $tags
PS C:\> Set-RDMUser $user

Adds a tag to the ones the user already carries, then saves the user. The @() matters: without it a user carrying a single tag yields one string, and appending would concatenate instead of adding.

Parameters

-ForcePromptAnswer

Switch to use with caution. It will automatically answer prompt asking yes/no, yes/no/cancel, or ok/cancel questions. In case of multiple prompts, multiple values can be passed to this parameter. Here are the accepted values:

  • Yes: Accept the prompt. Cover the OK and Automatic value.

  • No: Refuse the yes/no/cancel prompt. "Cancel" is the fallback option if there is no "No" option.

  • Cancel: Cancel the yes/no/cancel prompt. "No" is the fallback option if there is no "Cancel" option.

-User

User whose assigned tags are returned, obtained from Get-RDMUser. Omit to return every user tag available in the workspace.

CommonParameters

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

Inputs

RemoteDesktopManager.PowerShellModule.PSOutputObject.PSUserInfo

User whose tags are returned, obtained from Get-RDMUser

RemoteDesktopManager.PowerShellModule.PSOutputObject.PSCloudUserInfo

Cloud user whose tags are returned, obtained from Get-RDMUser

Outputs

System.String

Notes

For more information, type "Get-Help Get-RDMUserTag -detailed". For technical information, type "Get-Help Get-RDMUserTag -full".

Last updated

Was this helpful?