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

Backend: make user search query filter configurable #62

Open
slint opened this issue Feb 2, 2023 · 0 comments
Open

Backend: make user search query filter configurable #62

slint opened this issue Feb 2, 2023 · 0 comments

Comments

@slint
Copy link
Member

slint commented Feb 2, 2023

The search query is currently "statically" set to check for active:true AND confirmed:true.

This can be an issue for instances that want to configure only a subset of users to be searchable (e.g. exclude "light-weight accounts" or user with specific roles) or even loosen-up the query (e.g. include unconfirmed users).

This change can be introduced via a service config variable, and possibly with the use of the FromConfig utility become configurable via usual Invenio config (e.g. USERS_RESOURCES_DEFAULT_SEARCH_FILTER or similar).

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