Skip to main content

Users

List, read, create, change and delete the users of your organization.

list user​

List the users. Alias: list users.

passbolt list user [flags]

Flags​

FlagRequiredDescription
-g, --group <UUID>NoOnly the members of one of these groups. Repeat it for several.
-r, --resource <UUID>NoOnly the users with access to this resource.
-s, --search <TEXT>NoSearch by name or email.
-a, --adminNoOnly the administrators.
-c, --column <COLUMN>NoColumns to show. Repeat it for several. Default: id, username, first_name, last_name, role. Also: created_timestamp, modified_timestamp, active, deleted, disabled.
--filter <EXPR>NoA CEL expression or a field condition. See filters.

Examples​

List the administrators​

passbolt list user --admin

List who can read a resource​

passbolt list user --resource <RESOURCE_UUID> -c username -c role

get user​

Show the username, first name, last name and role of a user.

passbolt get user --id <UUID>

Flags​

FlagRequiredDescription
--id <UUID>YesID of the user.

Examples​

Read a user as JSON​

passbolt get user --id <UUID> --json

create user​

Invite a user to the organization.

passbolt create user --username <EMAIL> --firstname <NAME> --lastname <NAME> [flags]

Flags​

FlagRequiredDescription
-u, --username <EMAIL>YesEmail address of the user.
-f, --firstname <NAME>YesFirst name.
-l, --lastname <NAME>YesLast name.
-r, --role <ROLE>Nouser or admin. Default: user.

Examples​

Invite a user​

passbolt create user \
--username alice@example.com \
--firstname Alice \
--lastname Martin \
--role user

update user​

Change the name or the role of a user.

passbolt update user --id <UUID> [flags]

Flags​

FlagRequiredDescription
--id <UUID>YesID of the user.
-f, --firstname <NAME>NoNew first name.
-l, --lastname <NAME>NoNew last name.
-r, --role <ROLE>NoNew role: user or admin.

Examples​

Change the last name and make the user an administrator​

passbolt update user --id <UUID> --lastname "Dupont" --role admin

delete user​

Delete a user (administrators). What the user alone owns or manages blocks the deletion until you give it to someone else.

passbolt delete user --id <UUID> [flags]

Flags​

FlagRequiredDescription
--id <UUID>YesID of the user.
--dry-runNoOnly list what blocks the deletion. Cannot be used with --transfer-to.
--transfer-to <UUID>NoUser or group that becomes owner of what the user alone owns, and manager of the groups they alone manage. They must already have access to it.

A user who alone owns shared resources or folders, or alone manages groups, is deleted only once someone takes them over. Without --transfer-to, the command fails with:

The user alone owns <N> resources and <N> folders and alone manages <N> groups: give them to someone with --transfer-to <user or group id> (list them with --dry-run)

Examples​

See what blocks the deletion​

passbolt delete user --id <UUID> --dry-run

Give the user's resources to another user, then delete them​

passbolt delete user --id <UUID> --transfer-to <USER_UUID>