LGTM Enterprise 1.21.1

revoke-admin

Purpose

Remove administration privileges from a user account. This is equivalent to clicking the Revoke admin button on the Users page in the administration interface.

Usage

[sudo] lgtm-cli revoke-admin [--verbose] [--verbosity <level>] [--name <name>] [--id <account-number>]

Flags

Flag Value Notes
--verbose

Optional. Output more detailed information about actions. This increases the verbosity to level 4.

Default (without a --verbose or --verbosity setting): level 3 verbosity

--verbosity Level

Optional. Specify how much detail you want to be included in the output. 0 suppresses all output and 6 outputs all available information. As an alternative, you can use the verbose flag as shorthand for --verbosity 4.

Default (without a --verbosity or --verbose setting): 3

--name User name

The name of the user to edit. Typically this is their email address.

Exactly one of --name or --id must be specified.

--id Account number

The LGTM account number of the user to edit.

Exactly one of --name or --id must be specified.

Examples

To remove administrator access from a user with an account number of 123456789 and an email address of test-admin@example.com, you can use one of the following commands:

sudo lgtm-cli revoke-admin --name test-admin@example.com
sudo lgtm-cli revoke-admin --id 123456789

The administration pages and options are no longer available to this user.

Account numbers are displayed on the Users page in the administration interface, where you can also grant or revoke administration privileges.