users

Manage users within your Code42 environment.

users [OPTIONS] COMMAND [ARGS]...

add-role

Add the specified role to the user with the specified username.

users add-role [OPTIONS]

Options

--username <username>

Username of the target user.

--role-name <role_name>

Name of role to add.

-d, --debug

Turn on debug logging.

--totp <totp>

TOTP token for multi-factor authentication.

--profile <profile>

The name of the Code42 CLI profile to use when executing this command.

list

List users in your Code42 environment.

users list [OPTIONS]

Options

--org-uid <org_uid>

Limit users to only those in the organization you specify. Note that child orgs are included.

--role-name <role_name>

Limit results to only users having the specified role.

--active

Limits results to only active users.

--inactive

Limits results to only deactivated users.

-f, --format <format>

The output format of the result. Defaults to table format.

Options:TABLE|CSV|JSON|RAW-JSON
-d, --debug

Turn on debug logging.

--totp <totp>

TOTP token for multi-factor authentication.

--profile <profile>

The name of the Code42 CLI profile to use when executing this command.

remove-role

Remove the specified role to the user with the specified username.

users remove-role [OPTIONS]

Options

--role-name <role_name>

Name of role to remove.

--username <username>

Username of the target user.

-d, --debug

Turn on debug logging.

--totp <totp>

TOTP token for multi-factor authentication.

--profile <profile>

The name of the Code42 CLI profile to use when executing this command.