Skip to content

[Feature request]: Retrieve list of users by ID #1075

@jtrollkarl

Description

@jtrollkarl

General Info

  • I installed the latest version of Supabase Kt
  • I checked for similar feature requests

Feature request

I was curious if it would be possible to implement such a function? I've currently written

suspend fun AdminApi.retrieveUsersByIds(uids: List<String>): List<UserInfo> = coroutineScope { uids.map { uid -> async { retrieveUserById(uid) } }.awaitAll() }

but was curious if there would be a more efficient method instead of doing individual calls and waiting? I see in AdminApi there is:

override suspend fun retrieveUserById(uid: String): UserInfo { return api.get("admin/users/$uid").safeBody() }

I don't know if there currently exists an API function/path to achieve the behaviour i want (select multiple UserInfo objects by a list of IDs).

Usecase

Getting multiple UserInfo objects within a single call instead of multiple individual.

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