@dan Hi Dan - I've added https://github.com/FusionAuth/fusionauth-issues/issues/758 as this looks seperate to me
Posts made by srothery
-
RE: All password change APIs failing
-
RE: Retrieving Data using FusionAuth API
@dan said in Retrieving Data using FusionAuth API:
Great! We have a PR out to revisit the search documentation which I just merged. So hopefully that will be clearer for folks in the future.
That sounds great. Out of interest did you mean I could filter on applicationId in the query as well? I've tried:
http://{{dockerhost}}:{{fusionport}}/api/user/search?queryString=*&applicationId=85a03867-dccf-4882-adde-1a79aeec50df
and
http://{{dockerhost}}:{{fusionport}}/api/user/search?queryString=*®istrations.applicationId=85a03867-dccf-4882-adde-1a79aeec50df
but doesn't seem to filter the results further.
Many thanks for your time,
Simon
-
RE: Retrieving Data using FusionAuth API
Hi Dan,
That is good news indeed. I think I'm just not understanding or misreading the docs https://fusionauth.io/docs/v1/tech/apis/users#search-for-users which seems to be saying use of "query" or "queryString" either only works with ES or only supports a few fields like username, email etc. I will try something like:
GET /api/user/search?queryString=*
later on today.
Many thanks for your time,
Simon
Edit: it works thanks again
-
RE: Retrieving Data using FusionAuth API
@dan Hi can I just check then that if I'm using the database search engine there isn't way of obtaining a list of users. We have a simple use case with a small number of users, perhaps only a single application and just a few roles within that. Getting a list of user ids that we could then enumerate for display and other purposes is something we would need to do. We would rather not have to upgrade the search engine to Elastic in order to do this but is this the only way?
Many thanks for your time,
Simon