anchorectl usergroup

User Group Management Operations.

Every command on this page also accepts the global flags.

Subcommands

usergroup add

Create a new user group.

anchorectl usergroup add NAME [flags]

Arguments

ArgumentDescription
NAMEThe name of the user group.

Flags

FlagTypeEnvironment variableDefaultRequiredDescription
-d, --descriptionstringANCHORECTL_USERGROUPPOST_DESCRIPTION""NoThe description of the user group.
-o, --outputstringANCHORECTL_FORMATtextNoThe format to show the results. Allowable values: text, json, json-raw, id. See Output Formats.

usergroup delete

Delete a user group.

anchorectl usergroup delete USER_GROUP [flags]

Aliases: del

Arguments

ArgumentDescription
USER_GROUPThe name or uuid of the user group.

Flags

FlagTypeEnvironment variableDefaultRequiredDescription
-o, --outputstringANCHORECTL_FORMATtextNoThe format to show the results. Allowable values: text, json, json-raw, id. See Output Formats.

usergroup get

Get a user group.

anchorectl usergroup get USER_GROUP [flags]

Arguments

ArgumentDescription
USER_GROUPThe name or uuid of the user group.

Flags

FlagTypeEnvironment variableDefaultRequiredDescription
-o, --outputstringANCHORECTL_FORMATtextNoThe format to show the results. Allowable values: text, json, json-raw, id. See Output Formats.

usergroup list

List user groups.

anchorectl usergroup list [flags]

Flags

FlagTypeEnvironment variableDefaultRequiredDescription
-a, --contains-accountstringANCHORECTL_USERGROUP_CONTAINS_ACCOUNT""NoFilter the user groups to only those that contain the specified domain name.
-u, --contains-userstringANCHORECTL_USERGROUP_CONTAINS_USER""NoFilter the user groups to only those that contain the specified user.
-o, --outputstringANCHORECTL_FORMATtextNoThe format to show the results. Allowable values: text, json, json-raw, id. See Output Formats.
-g, --user-group-namestringANCHORECTL_USERGROUP_USER_GROUP_NAME""NoFilter results to match the specified user group name.

usergroup role

User Group Role Operations.

anchorectl usergroup role [command]

Subcommands

usergroup role add

Add domain name and role(s) to this user group.

anchorectl usergroup role add USER_GROUP DOMAIN_NAME [flags]

Arguments

ArgumentDescription
DOMAIN_NAMEThe domain name.
USER_GROUPThe name or uuid of the user group.

Flags

FlagTypeEnvironment variableDefaultRequiredDescription
-i, --inputstringANCHORECTL_INPUT""NoPath to a JSON input file or - to read from stdin.
-o, --outputstringANCHORECTL_FORMATtextNoThe format to show the results. Allowable values: text, json, json-raw, id. See Output Formats.
-r, --rolestring (repeatable)ANCHORECTL_ROLE[]NoThe RBAC role(s) that will be associated with the specified domain.

usergroup role delete

Remove domain name and role(s) from this user group.

anchorectl usergroup role delete USER_GROUP DOMAIN_NAME [flags]

Aliases: del

Arguments

ArgumentDescription
DOMAIN_NAMEThe domain name.
USER_GROUPThe name or uuid of the user group.

Flags

FlagTypeEnvironment variableDefaultRequiredDescription
-o, --outputstringANCHORECTL_FORMATtextNoThe format to show the results. Allowable values: text, json, json-raw, id. See Output Formats.
-r, --rolestring (repeatable)ANCHORECTL_ROLE[]NoThe RBAC role(s) that will be associated with the specified domain name.

usergroup role list

List accounts and roles configured in this user group.

anchorectl usergroup role list USER_GROUP [flags]

Arguments

ArgumentDescription
USER_GROUPThe name or uuid of the user group.

Flags

FlagTypeEnvironment variableDefaultRequiredDescription
-i, --inputstringANCHORECTL_INPUT""NoPath to a JSON input file or - to read from stdin.
-o, --outputstringANCHORECTL_FORMATtextNoThe format to show the results. Allowable values: text, json, json-raw, id. See Output Formats.

usergroup update

Update a user group.

anchorectl usergroup update USER_GROUP [flags]

Arguments

ArgumentDescription
USER_GROUPThe name or uuid of the user group.

Flags

FlagTypeEnvironment variableDefaultRequiredDescription
-d, --descriptionstringANCHORECTL_USERGROUP_DESCRIPTION""YesThe description of the user group.
-o, --outputstringANCHORECTL_FORMATtextNoThe format to show the results. Allowable values: text, json, json-raw, id. See Output Formats.

usergroup user

User Group User Operations.

anchorectl usergroup user [command]

Subcommands

usergroup user add

Add user(s) to this user group.

anchorectl usergroup user add USER_GROUP [flags]

Arguments

ArgumentDescription
USER_GROUPThe name or uuid of the user group.

Flags

FlagTypeEnvironment variableDefaultRequiredDescription
-i, --inputstringANCHORECTL_INPUT""NoPath to a JSON input file or - to read from stdin.
-o, --outputstringANCHORECTL_FORMATtextNoThe format to show the results. Allowable values: text, json, json-raw, id. See Output Formats.
-u, --userstring (repeatable)ANCHORECTL_USER[]NoThe username(s) that will be associated with the User Group.

usergroup user delete

Remove user(s) from this user group.

anchorectl usergroup user delete USER_GROUP [flags]

Aliases: del

Arguments

ArgumentDescription
USER_GROUPThe name or uuid of the user group.

Flags

FlagTypeEnvironment variableDefaultRequiredDescription
-o, --outputstringANCHORECTL_FORMATtextNoThe format to show the results. Allowable values: text, json, json-raw, id. See Output Formats.
-u, --userstring (repeatable)ANCHORECTL_USER[]NoThe username(s) that will be removed from the User group.

usergroup user list

List users configured in this user group.

anchorectl usergroup user list USER_GROUP [flags]

Arguments

ArgumentDescription
USER_GROUPThe name or uuid of the user group.

Flags

FlagTypeEnvironment variableDefaultRequiredDescription
-i, --inputstringANCHORECTL_INPUT""NoPath to a JSON input file or - to read from stdin.
-o, --outputstringANCHORECTL_FORMATtextNoThe format to show the results. Allowable values: text, json, json-raw, id. See Output Formats.
Last modified September 22, 2026