Protect what matters – even after you're gone. Make a plan for your digital legacy today.
Forum Discussion
Former Member
4 years agoVault creation in a pipeline
Hello,
I have a pipeline creating a few things. I'd like to add creation of a vault, too. The user I'm using for vault creation has been added to group with permission to create vaults ("Create Va...
Former Member
4 years agoHey @keram ,
If you use the CLI to remove the user that created the vault, I think that should accomplish what you're trying to do.
It would look similar to this:
```
vault_name="example-vault-name"
session_token="obtained-earlier"
current_user="user ID or username of user used in pipeline"
vault_id=$(op create vault "$vault_name" --allow-admins-to-manage true --session $session_token | jq -r '.uuid')
op remove user "$current_user" $vault_id --account my-account --session $session_token
```
Once the user that created the vault is removed, only the admin and the owner groups would remain with sufficient permissions to view and edit the vault.
Does that help?