diff --git a/auth0/v3/management/users.py b/auth0/v3/management/users.py index 6640e5eb..396d73c4 100644 --- a/auth0/v3/management/users.py +++ b/auth0/v3/management/users.py @@ -25,7 +25,7 @@ def _url(self, id=None): return url def list(self, page=0, per_page=25, sort=None, connection=None, q=None, - search_engine='v1', include_totals=True, fields=None, + search_engine=None, include_totals=True, fields=None, include_fields=True): """List or search users. @@ -43,8 +43,9 @@ def list(self, page=0, per_page=25, sort=None, connection=None, q=None, in app_metadata, user_metadata or the normalized user profile are searchable. - search_engine (str, optional): Use 'v2' if you want to try our new - search engine. + search_engine (str, optional): The version of the search_engine to use + when querying for users. Will default to the latest version available. + See: https://auth0.com/docs/users/search fields (list of str, optional): A list of fields to include or exclude from the result (depending on include_fields). Empty to diff --git a/auth0/v3/test/management/test_users.py b/auth0/v3/test/management/test_users.py index b13f600f..36a57573 100644 --- a/auth0/v3/test/management/test_users.py +++ b/auth0/v3/test/management/test_users.py @@ -24,7 +24,7 @@ def test_list(self, mock_rc): 'fields': None, 'include_fields': 'true', 'q': None, - 'search_engine': 'v1' + 'search_engine': None }) u.list(page=1, per_page=50, sort='s', connection='con', q='q',