Skip to content

No ListUsers method exists in the Auth Admin functionality #529

@danperks

Description

@danperks

Feel free to close this if this is more of a feature suggestion, although arguably I could see it being considered a "bug" or an oversight, depending on if this was a conscious decision or not.

In the JS library, which the Swift library is meant to somewhaty mirror, there is a method called ListUsers defined here that enables the client to get all the users within their database, given the correct permissions to allow such a query.

As its not possible to directly query the "auth" schema for (valid) security reasons, this would be a simple and easy option, but it doesn't appear to have made it into the Swift library.

While a workaround for this would be to make a Postgres function to pull the data and pass it through, ideally my use case wouldn't require such an "install" process, being able to pull the list with only the instance URL and a key with the necessary permissions.

Is there any reason why the function wasn't included in the library? If so, is there any good workaround that doesn't require any changes to my Supabase instance. My next best idea is cloning the logic of the JS library method, which involves manually requesting the endpoint myself outside of the Swift library.

Thanks in advanced and keep up the good work 👍🏻

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions