Requirements
Before you can use 1Password CLI to , you’ll need to:
You can manage vault permissions if you’re an owner, administrator, or if you have themanage_vault permission in a vault.
Grant permissions in vaults
Users
Useop vault user grant to grant a user permissions in a vault.
For example, to grant the user Wendy Appleseed permission to edit items and manage vault permissions in the Prod vault:
Groups
Useop vault group grant to grant a group permissions in a vault.
For example, to grant the group IT permission to edit items and manage vault permissions in the Prod vault:
Revoke permissions in vaults
Users
Useop vault user revoke to revoke a user’s permissions in a vault.
For example, to revoke the user Wendy Appleseed’s permission to view items in the Prod vault:
Groups
Useop vault group revoke to revoke a group’s permissions in a vault.
For example, to revoke the group IT’s permission to view items in the Prod vault:
Scripting
If you’re using scripts to grant and revoke vault permissions, or if your shell isn’t interactive, you’ll need to include the--no-input flag and specify all dependent permissions in a comma-separated list after the --permissions flag.
For example, the allow_managing permission requires the allow_editing and allow_viewing permission. To grant the user Wendy Appleseed permission to manage vault permissions in the Prod vault:
allow_editing from a group that currently also has allow_managing granted in a vault: