Custom field filter for user records via the REST API?
Added by Paul Philion 3 months ago
The /issues endpoint in the REST API provides a optional filter for custom fields:
cf_x: get issues with the given value for custom field with an ID of x
The /users endpoint does not have the same filter, and the name filter doesn't include custom fields.
Is there any other way to select users based on custom fields via the API?
I'm limping my way thru caching all users indexed by custom field, just for that lookup.
Replies (2)
RE: Custom field filter for user records via the REST API? - Added by Ruby Williams 3 months ago
Hello!
The /users endpoint doesn't support filtering by custom fields. Your best bet is to continue caching users by custom fields for lookups. Alternatively, you can fetch all users and filter them locally or use custom scripts to maintain a cache.
Regards