feature-requests
feature-requests copied to clipboard
Add feature to query user's custom fields
Rocketchat's user list API does not provide support for querying custom fields.
For example: I successfully added custom fields company and department in user's profile, but query
{ "customFields.company": {$eq: "Facebook"}, "customFields.company" {$eq: "Customer Support"}: }
return error
{"success":false,"error":"Invalid attribute: customFields.company [error-invalid-query]","errorType":"error-invalid-query"}
There's a workaround to get user by custom fields:
- Get all users by API get user info to get user's custom fields
- Perform filter in code (filter Javascript for example).
However, this approach invokes TOO MUCH calls to server whereas if user list API supports querying by custom fields, it only takes 1 request.
So I propose Rocketchat provide support for querying custom fields in user list API.
Can i pick that one ?
Can i pick that one ?
No need to ask for permission to fix the issue, feel free to work on it! Just check if someone it's already raised a PR for that (should be linked in this issue). Best of luck 🚀 👏
Questions? Help needed? Feature Requests?
- Join our Open Server in the #support channel and feel free to raise a question
- Join our Community Forum and search/create a post there
- Feature Request: Open an issue in Feature Request repository
Thanks for your support Is it supported now?