Skip to main content
Version: 3.4

Profile Commands

The profile command group views and manages the currently authenticated User's profile, tokens, and password.

For command line syntax, see the UDMG Client CLI overview.

Commands Overview​

CommandDescriptionRequired Role
profile getRetrieves the profile of the currently authenticated User.Any
profile get-scopesReturns the permission scopes assigned to the currently authenticated User.Any
profile list-tokensReturns all API tokens belonging to the currently authenticated User.Any
profile create-tokenCreates a Personal Access Token for the currently authenticated User. The token value is returned only at creation — it cannot be retrieved afterwards.Any
profile delete-token <token>Permanently deletes a Personal Access Token belonging to the currently authenticated User.Any
profile set-passwordChanges the password of the currently authenticated User.Any

Authentication​

Every udmg-client command authenticates to the UDMG Server using a UDMG username and password. Supply them with the --auth-username and --auth-password flags, or set the UDMG_CLI_AUTH_USERNAME and UDMG_CLI_AUTH_PASSWORD environment variables. For details and examples, see Authentication.

Commands Reference​

get​

Description

Retrieves the profile of the currently authenticated User.

Required role

  • Any

Command line syntax

udmg-client [global options] profile get

Global options

See Global Options for connection, authentication, and output options. These can appear anywhere in the command line. Connection and authentication options can be supplied as environment variables.

Example

udmg-client profile get

get-scopes​

Description

Returns the permission scopes assigned to the currently authenticated User.

Required role

  • Any

Command line syntax

udmg-client [global options] profile get-scopes

Global options

See Global Options for connection, authentication, and output options. These can appear anywhere in the command line. Connection and authentication options can be supplied as environment variables.

Example

udmg-client profile get-scopes

list-tokens​

Description

Returns all API tokens belonging to the currently authenticated User.

Required role

  • Any

Command line syntax

udmg-client [global options] profile list-tokens [command-specific options]

Command-specific options

OptionDescriptionRequiredDefault
--pagePage number.No(none)
--page-sizeNumber of items per page.No(none)
--orderSort direction. Accepted values: asc, desc.No(none)
--order-byField to sort results by.No(none)

Global options

See Global Options for connection, authentication, and output options. These can appear anywhere in the command line. Connection and authentication options can be supplied as environment variables.

Example

udmg-client profile list-tokens --page 1 --page-size 10 --order asc --order-by createdAt

create-token​

Description

Creates a Personal Access Token for the currently authenticated User. The token value is returned only at creation — it cannot be retrieved afterwards.

Required role

  • Any

Command line syntax

udmg-client [global options] profile create-token [command-specific options]

Command-specific options

OptionDescriptionRequiredDefault
--nameName for the new token.YesN/A
--descriptionDescription for the token.No(none)
--expires-atExpiration date for the token, in YYYY-MM-DD format. If omitted, the token does not expire.No(none)

Global options

See Global Options for connection, authentication, and output options. These can appear anywhere in the command line. Connection and authentication options can be supplied as environment variables.

Example

udmg-client profile create-token --name ci-token --expires-at 2027-12-31

delete-token​

Description

Permanently deletes a Personal Access Token belonging to the currently authenticated User.

Required role

  • Any

Command line syntax

udmg-client [global options] profile delete-token <token>

Arguments

ArgumentDescription
<token>Token name.

Global options

See Global Options for connection, authentication, and output options. These can appear anywhere in the command line. Connection and authentication options can be supplied as environment variables.

Example

udmg-client profile delete-token ci-token

set-password​

Description

Changes the password of the currently authenticated User.

Required role

  • Any

Command line syntax

udmg-client [global options] profile set-password [command-specific options]

Command-specific options

OptionDescriptionRequiredDefault
--current-passwordCurrent password.YesN/A
--new-passwordNew password.YesN/A

Global options

See Global Options for connection, authentication, and output options. These can appear anywhere in the command line. Connection and authentication options can be supplied as environment variables.

Example

udmg-client profile set-password --current-password oldpass --new-password newpass