Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add listItemsByTag and listItemsByTagContains #96

Open
atuttle opened this issue Mar 28, 2023 · 0 comments
Open

Add listItemsByTag and listItemsByTagContains #96

atuttle opened this issue Mar 28, 2023 · 0 comments

Comments

@atuttle
Copy link

atuttle commented Mar 28, 2023

Summary

The REST api supports searching with tag filters, just like name filters. It would be really useful if we could do that in the JS SDK too.

Use cases

We're writing automations to perform key rotations and update 1password, but we need the flexibility to set the schedule for rotations on the item in 1Password. For example, you might use a tag named rotate:quarterly or something like that. This would make it easy to search for items that need to be rotated during the quarterly rotation.

Proposed Solution

Copy/paste the listItemsByName and listItemsByNameContains functions, and change name to tag.

Is there a workaround to accomplish this today?

Only way to perform this style of search I've found is to interact with the REST api directly. Instead, at the moment, I'm getting all items and then filtering the array by inspecting the tags on every item.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant