Skip to content

Access fields with op.get_item returns field IDs instead of field labels #68

@traviscook21

Description

@traviscook21

Describe the bug
Using 1password CLI 2, there's been a regression of op.get_item when passing fields. It used to be that passing fields would return a dictionary with keys of field names and values of the field values. Now, it returns key with field UUIDs and values with the field values.

Root issue is there reference to id instead of label here:

item[i["id"]] = i["value"]

To Reproduce
Steps to reproduce the behavior:

  1. Create a credential in a vault with a custom field called foo and value of bar
  2. Call op.get_item($new_field_id", ["foo"])
  3. See the return of {"$arbitrary_uuid": "bar"}

Expected behavior
A clear and concise description of what you expected to happen.

I'd expect a return of {"foo": "bar"}

Desktop (please complete the following information):

  • OS: Mac Sequoia
  • Browser: Arc
  • Version 1.65.0

Additional context
Using 1password 1.0.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions