group
Groups can be used to organize your team and delegate administrative responsibilities. You can give groups access to vaults and assign them permissions, so you don't have to keep track of everyone separately.
Subcommands
- group create: Create a group
- group delete: Remove a group
- group edit: Edit a group's name or description
- group get: Get details about a group
- group list: List groups
- group user: Manage group membership
group create
Create a group and receive a JSON object with the group's ID.
Flags
group delete
Remove a group. Specify the group to delete by its name or ID.
group edit
Edit a group's name or description. Specify the group to edit by its name or ID.
Flags
group get
Get details about a group. Specify the group by its name or ID.
Use standard input to specify objects
If you enter a hyphen (-
) instead of a single object for this command,
the tool will read object specifiers from standard input (stdin).
Separate each specifier with a new line. For more information about how
to specify objects, run op help
.
You can also pass the command a list or array of JSON objects. The tool
will get an item for any object that has an ID, ignoring line
breaks. This is useful for passing information from one op
command
to another.
Examples
Get details for all groups:
Get details for the groups who have access to a vault:
group list
List groups.
Flags
Returns all groups in an account by default.
Examples
Get details for all groups:
Get details for the groups that have access to a vault:
Get details for the groups that a user belongs to:
group user
Subcommands
- group user grant: Add a user to a group
- group user list: Retrieve users that belong to a group
- group user revoke: Remove a user from a group
group user grant
Grant a user access to a group.
Flags
group user list
Retrieve users that belong to a group.
group user revoke
Revoke a user's access to a group.