Skip to main content
Version: v2 RC

listUsers()

Get a list of users.

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

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

Examples

Get a full list of users.

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