diff --git a/invenio_users_resources/services/users/config.py b/invenio_users_resources/services/users/config.py index 2a5aafb..65db079 100644 --- a/invenio_users_resources/services/users/config.py +++ b/invenio_users_resources/services/users/config.py @@ -47,7 +47,7 @@ class UserSearchOptions(SearchOptions, SearchOptionsMixin): query_parser_cls = QueryParser.factory( tree_transformer_cls=SearchFieldTransformer, fields=["username^2", "email^2", "profile.full_name^3", "profile.affiliations"], - allow_list=["username", "email"], # mapped fields are added on the query parser + allow_list=["username", "email", "id"], # mapped fields are added on the query parser mapping={ "affiliation": "profile.affiliations", "affiliations": "profile.affiliations",