This repository has been archived by the owner on Nov 30, 2022. It is now read-only.
[User Management] Update GET users API to facilitate user search #437
Labels
enhancement
New feature or request
Is your feature request related to a specific problem?
The frontend requires a way to search for users.
Describe the solution you'd like
GET /api/v1/users/
to receive an optional query parameterusername=<term>
FidesopsUser.query.filter(FidesopsUser.title.ilike('%<term>%'))
Additional context
Consider using https://sqlalchemy-utils.readthedocs.io/en/latest/orm_helpers.html#sqlalchemy_utils.functions.escape_like to prevent wildcards being passed in with the API input.
The text was updated successfully, but these errors were encountered: