Skip to main content

Manage vault permissions using 1Password SDKs

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.

caution

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.

TIP

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:

  • vaultID: The unique identifier of the vault.
  • A slice of one or more GroupAccess structs that each contain:
    • GroupID: The unique identifier of the group.
    • Permissions: A bitmask of vault permissions to grant to the group. You can combine multiple permissions using the bitwise OR operator (|).

Update vault permissions

caution

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.

PermissionDescriptionRequired dependenciesInteger
READ_ITEMSView items in the vault.None32
CREATE_ITEMSCreate items in the vault.READ_ITEMS128
REVEAL_ITEM_PASSWORDView and copy concealed password fields in the vault.READ_ITEMS16
UPDATE_ITEMSEdit items in the vault.READ_ITEMS, REVEAL_ITEM_PASSWORD64
ARCHIVE_ITEMSMove items in the vault to the Archive.READ_ITEMS, REVEAL_ITEM_PASSWORD, UPDATE_ITEMS256
DELETE_ITEMSDelete items in the vault.READ_ITEMS, REVEAL_ITEM_PASSWORD, UPDATE_ITEMS512
UPDATE_ITEM_HISTORYView and restore item history.READ_ITEMS, REVEAL_ITEM_PASSWORD1024
IMPORT_ITEMSMove or copy items into the vault.READ_ITEMS, CREATE_ITEMS2097152
EXPORT_ITEMSSave items in the vault to an unencrypted file that other apps can read.READ_ITEMS, REVEAL_ITEM_PASSWORD, UPDATE_ITEM_HISTORY4194304
SEND_ITEMSCopy and share items.READ_ITEMS, REVEAL_ITEM_PASSWORD, UPDATE_ITEM_HISTORY1048576
PRINT_ITEMSPrint the contents of items in the vault.READ_ITEMS, REVEAL_ITEM_PASSWORD, UPDATE_ITEM_HISTORY8388608
MANAGE_VAULTGrant and revoke access to the vault, change permissions for others, and delete the vault. This permission doesn’t include any item viewing or editing permissions.None2
NO_ACCESSGrants a group access entry to a vault without any permissions in it.0

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.

PermissionDescriptionIncludes permissions
Allow viewingView items in a vault, view concealed passwords and copy them to the clipboard.READ_ITEMS, REVEAL_ITEM_PASSWORD, UPDATE_ITEM_HISTORY
Allow editingCreate, edit, move, print, copy, archive, and delete items in the vault. Requires the Allow viewing permission level to be granted.CREATE_ITEMS, UPDATE_ITEMS, ARCHIVE_ITEMS, DELETE_ITEMS, IMPORT_ITEMS, EXPORT_ITEMS, SEND_ITEMS, PRINT_ITEMS
Allow managingGrant and revoke access to the vault, change permissions for others, and delete the vault.MANAGE_VAULT

Was this page helpful?