Exact example of using "GET /api/user/search?queryString={queryString}" or search_users_by_query(self, request)
-
I have not found any examples and I can not get a simple query to work. For example,
r=client.search_users_by_query("{ tenantId:a103befb-beb5-49c3-8481-0c832f061a3b }")
returns an error.
Can someone show the EXACT method of using this search API?
-
An easy way to see the elastic search string for some queries is to go to the user search in the admin screen, click 'advanced' and then click 'show elastic query'.
Here's an example elastic search post: https://fusionauth.io/community/forum/topic/110/how-can-i-get-all-users-for-an-application-using-the-api
I know this isn't exactly what you asked for, but hope it helps some.