Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Adds a page for listing all users

Copplebdb56c1c074f
diff --git a/web/spec/supabase.yml b/web/spec/supabase.yml
index 195b563f57d..48cc578f9fc 100644
--- a/web/spec/supabase.yml
+++ b/web/spec/supabase.yml
@@ -146,6 +146,7 @@ info:
- auth.api.resetPasswordForEmail()
- name: 'Auth (Server Only)'
items:
+ - auth.api.listUsers()
- auth.api.createUser()
- auth.api.deleteUser()
- auth.api.generateLink()
@@ -697,6 +698,20 @@ pages:
)
```
+ auth.api.listUsers():
+ title: 'listUsers()'
+ $ref: '@supabase/gotrue-js.GoTrueApi.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:
+ - name: Get a full list of users.
+ isSpotlight: true
+ js: |
+ ```js
+ const { data: user, error } = await supabase.auth.api.listUsers()
+ ```
+
auth.api.createUser():
title: 'createUser()'
$ref: '@supabase/gotrue-js.GoTrueApi.createUser'