-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
bugSomething isn't working as expected. Has never worked before. When it has, use "regression" instead.Something isn't working as expected. Has never worked before. When it has, use "regression" instead.
Description
Scenario & Reproduction Steps
I am trying to to update/create Items in a vault, but it seems like I need the vault ID. When trying to get the ID via the vault title, it seems like the SDK doesn't show the title. I used this Debug Function:
func dumpAllVaults(ctx context.Context, client *onepassword.Client) {
log.Println("[Debug] listing all vaults")
vaults, err := client.Vaults().List(ctx)
if err != nil {
log.Printf("[Debug] Vaults().List FAILED: %v", err)
return
}
for _, v := range vaults {
title := v.Title
if title == "" {
title = "[No Title]"
}
log.Printf("[Debug] Vault: ID='%s' Title='%s' Type='%s' CreatedAt='%s' UpdatedAt='%s'",
v.ID, title, v.VaultType, v.CreatedAt, v.UpdatedAt)
}
log.Println("[dumpAllVaults] finished listing vaults")
}
Actual Behavior
I get the following output for each vault:
2026/02/08 21:51:41 [dumpAllVaults] Vault: ID='fhxfrkobv2ko7tijds3ujoboqq' Title='[Encrypted]' Type='userCreated' CreatedAt='2025-09-18 08:47:35 +0000 UTC' UpdatedAt='2025-09-18 09:18:26 +0000 UTC'
Expected Behavior
To get the actual Title of the vault like it is with the CLI
op vault list
ID NAME
fhxfrkobv2ko7tijds3ujoboqq Private
...
SDK version
v0.4.0-beta.2
Additional information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't working as expected. Has never worked before. When it has, use "regression" instead.Something isn't working as expected. Has never worked before. When it has, use "regression" instead.