rest icon indicating copy to clipboard operation
rest copied to clipboard

Additional parameters to GET /user in order to limit the results returned

Open DuvelCorp opened this issue 3 years ago • 0 comments

Hello

This is not a bug, but 2 questions, that can become an enhancement request.

Regarding API's end point GET /user, is there a way to :

  1. Limit the fields returned ? In my sync procedure I just need the ID, Firstname, Lastname and Email, of the humhub users in order to link them in the user table of my other system. When I use /user it returns all user's fields which is a bit overkilling.

  2. Pass some filters to limit results ? For instance I'd like to retrieve only the users for which the ID of the other system (custom profile field) is still NULL.

Cheers

DuvelCorp avatar Feb 16 '22 16:02 DuvelCorp