Requirements
Before you can use 1Password CLI to add and remove team members, you’ll need to: If you use automated provisioning hosted by 1Password, you’ll also need to complete a one-time setup before managing users with the CLI.Set up provisioning
With automated provisioning
Support for automated provisioning hosted by 1Password is available in the latest beta build of 1Password CLI, version
2.36.0-beta-02 or later.op provisioning configure with your provisioning token and SCIM URL. The --token value must be a secret reference that points to the vault, item, and field where your token is stored in your 1Password account (for example, op://vault-name/item-name/field-name). The --url flag accepts the SCIM URL as plaintext or as a secret reference. For example:
With 1Password CLI
If you don’t use automated provisioning, an owner or administrator must visit the Provisioning settings page on 1Password.com and select Turn On CLI Provisioning. This will create a Provision Managers group with the permissions needed to provision and confirm team members, as well as recover accounts. The person who created the group will be added to it.Manage who can provision team members
By default, the owner or administrator who created the Provision Managers group is the only person added to it. If other team members need to be able to provision users, useop group user grant to add them to the group.
For example, to add Wendy Appleseed to the Provision Managers group:
Add team members
To invite people to your team, useop user provision with the team member’s name and email address.
For example, to invite Wendy Appleseed to join your 1Password account:
Confirm team members
If your account uses automated provisioning, users are confirmed automatically. You can skip this section.
op user confirm or on 1Password.com.
With op user confirm
To confirm a team member on the command line, use op user confirm with their name or email address. To confirm all unconfirmed team members, include the --all flag.
For example, to confirm Wendy Appleseed:
On 1Password.com
To confirm a team member on 1Password.com:- Sign in to your account on 1Password.com.
- Select People in the sidebar.
- Select the name of any team member with the Pending Provision status.
- Select Confirm or Reject.
Remove team members
To remove someone’s access to vaults and items, you can suspend or delete their account.Suspend an account temporarily
Useop user suspend to suspend a team member temporarily.
Include the --deauthorize-devices-after flag, followed by the number of seconds, minutes, or hours (for example, 600s, 10m, or 1h) to set the time after suspension to deauthorize the suspended team member’s devices. The maximum time permitted is 24 hours. If unspecified, their devices will be deauthorized immediately.
If your account uses automated provisioning, the
--deauthorize-devices-after flag is ignored. The provisioning service always deauthorizes devices after 10 minutes.op user reactivate.
Remove an account permanently
Useop user delete to permanently remove a team member’s access to vaults and items and delete all of their data from the account.
For example, to remove Wendy Appleseed: