Forum Discussion
How do I export only Vault and password metadata
- 9 months ago
So I don't know if anyone will ever need to do this because after looking through various options, we found a way to get a onetime dump of information we needed using a token of a service account that has rights on all the vaults of interest and the following commands
export OP_SERVICE_ACCOUNT_TOKEN=<Service account token> op item list --format json| jq -r '["password_id","password_name","vault_id", "vault_name"], (.[] |[.id, .title, .vault."id", .vault."name"]) | @csv' > items.csvAnd then we uploaded the returned information into a datatable which we can use in rules and queries in Chronicle.
We then deleted the token and service account because it was too permissive
So I don't know if anyone will ever need to do this because after looking through various options, we found a way to get a onetime dump of information we needed using a token of a service account that has rights on all the vaults of interest and the following commands
export OP_SERVICE_ACCOUNT_TOKEN=<Service account token>
op item list --format json| jq -r '["password_id","password_name","vault_id", "vault_name"], (.[] |[.id, .title, .vault."id", .vault."name"]) | @csv' > items.csvAnd then we uploaded the returned information into a datatable which we can use in rules and queries in Chronicle.
We then deleted the token and service account because it was too permissive