Skip to main content
If you have 1Password Business or 1Password Teams, you can manage your team members’ vault access at the group level. We recommend authenticating with the 1Password desktop app to manage vault permissions. Service accounts can only manage permissions for vaults created by the service account.
Some vault permissions require dependent permissions. You must grant or remove all required dependent permissions or the operation will fail. The permissions available to you depend on your account type. See 1Password Business vault permissions and 1Password Teams vault permissions for more information.

Before you get started

Before you begin, follow the steps to get started with a 1Password SDK. The examples on this page assume you have an initialized client instance. For example:
See the examples folder in the 1Password Go, JavaScript, or Python SDK GitHub repository for full example code you can quickly clone and test in your project.

Grant vault permissions

Use the Vaults().GrantGroupPermissions() method to grant vault permissions to all team members who belong to a specific group. This method requires the following:

Update vault permissions

Make sure to specify all the permissions the group should have in the vault. This method completely replaces all existing permissions.
Use the Vaults().UpdateGroupPermissions() method to replace a group’s existing permissions in a vault. This method accepts a slice of one or more GroupVaultAccess structs that each contains:

Revoke vault permissions

Use the Vaults().RevokeGroupPermissions() method to completely remove a group’s access to a vault. This method requires the following:

Appendix: Vault permissions

The permissions available to you depend on your account type: 1Password Business or 1Password Teams.

1Password Business vault permissions

In 1Password Business, all vault permissions have a hierarchical relationship in which narrower permissions require broader permissions to be granted alongside them. For example, to grant the narrower permission DELETE_ITEMS you must also grant the broader permissions EDIT_ITEMS, REVEAL_ITEM_PASSWORD, and READ_ITEMS. This is because you cannot delete items unless you can also view and edit them. Similarly, to revoke a broader permission like READ_ITEMS, any narrower dependent permissions like DELETE_ITEMS that have already been granted must also be revoked.

1Password Teams vault permissions

1Password Teams includes three broad permission levels made up of collections of the granular vault permissions available in 1Password Business. You’ll need to grant or revoke all the permissions for the desired permission level. The permission levels have a hierarchical relationship. To grant Allow editing, you must also grant the permissions included in Allow viewing.