FusionAuth / fusionauth-python-client

FusionAuth Python Client
https://fusionauth.io
Apache License 2.0
24 stars 12 forks source link

search_users_by_ids does not work / does not follow your API spec #25

Open jegger opened 3 months ago

jegger commented 3 months ago

It looks like search_users_by_ids does not work / never worked?

Reading to your API specs, it requires a parameter for each id. https://fusionauth.io/docs/apis/users#search-for-users What it does however is somehow expecting a list of user ids and then converting that list value to a boolean value instead of looping trough all the ids and appending paramteres.

It could be changed in that way; however as this is auto-generated, I don't really know how to do it properly:

    uri = fa_client(tenant_id).start().uri("/api/user/search")
    for id in ids:
        uri.url_parameter("ids", id)
    search_res = await uri.get().go()