メインコンテンツまでスキップ

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: user, error } = await supabase.auth.api.listUsers()

Notes

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

Examples

Get a full list of users.

const { data: user, error } = await supabase.auth.api.listUsers()