listUsers()

Get a list of users.

This function should only be called on a server. Never expose your service_role key in the browser.

1const { data: { users }, error } = await supabase.auth.admin.listUsers()

Examples#

Get a full list of users.#

1const { data: { users }, error } = await supabase.auth.admin.listUsers()