Skip to main content

Groups

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

list group​

List the groups. Alias: list groups.

passbolt list group [flags]

Flags​

FlagRequiredDescription
-u, --user <UUID>NoOnly the groups with this member. Repeat it for several.
-m, --manager <UUID>NoOnly the groups with this manager. Repeat it for several.
-c, --column <COLUMN>NoColumns to show: id, name, created_timestamp, modified_timestamp, deleted, user_count. Default: id, name.
--filter <EXPR>NoA CEL expression or a field condition. See filters.

Examples​

List the groups you manage​

passbolt list group --manager <USER_UUID>

List the groups with more than two members​

passbolt list group --filter 'user_count > 2' -c name -c user_count

get group​

Show the name of a group, then its members.

passbolt get group --id <UUID> [flags]

Flags​

FlagRequiredDescription
--id <UUID>YesID of the group.
-c, --column <COLUMN>NoColumns of the members, headed as written: UserID, Username, UserFirstName, UserLastName, IsGroupManager.

Examples​

Show who manages a group​

passbolt get group --id <UUID> -c Username -c IsGroupManager

create group​

Create a group with its managers and members.

passbolt create group --name <NAME> --manager <UUID> [flags]

Flags​

FlagRequiredDescription
-n, --name <NAME>YesName of the group.
-m, --manager <UUID>YesManager of the group. Repeat it for several.
-u, --user <UUID>NoMember of the group. Repeat it for several.

Examples​

Create a group with two members​

passbolt create group \
--name "DevOps" \
--manager <MANAGER_UUID> \
--user <USER_UUID1> \
--user <USER_UUID2>

update group​

Rename a group, or add and remove its members and managers.

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

Flags​

FlagRequiredDescription
--id <UUID>YesID of the group.
-n, --name <NAME>NoNew name.
-u, --user <UUID>NoAdd this member, or turn this manager back into a member. Repeat it for several.
-m, --manager <UUID>NoAdd this manager, or promote this member. Repeat it for several.
-d, --deleteNoRemove the users given with --user and --manager instead.
note

Giving a user the role they already have, or removing someone who is not a member, is refused.

Examples​

Rename a group and add a manager​

passbolt update group --id <UUID> --name "Platform" --manager <MANAGER_UUID>

Remove a member and a manager​

passbolt update group --id <UUID> --delete --user <USER_UUID> --manager <MANAGER_UUID>

delete group​

Delete a group. What the group alone owns blocks the deletion until you give it a new owner.

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

Flags​

FlagRequiredDescription
--id <UUID>YesID of the group.
--dry-runNoOnly list what blocks the deletion.
--transfer-to <UUID>NoUser or group that becomes the owner of what the group alone owns. They must already have access to it.

Examples​

See what blocks the deletion​

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

Give the group's resources to a user, then delete it​

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