Merge pull request #14971 from supabase/J0/exporting-users

docs: add section on exporting users
This commit is contained in:
Joel Lee authored and GitHub committed 2023-06-13 08:45:30 +08:00
commit ef8769638c
2 files changed
+11

No files matched your search

@@ -44,6 +44,17 @@ You cannot delete a user if they are the owner of any objects in Supabase Storag
You will encounter an error when you try to delete an Auth user that owns any Storage objects. If this happens, try deleting all the objects for that user, or reassign ownership to another user.
</Admonition>
## Exporting Users
As Supabase is built on top of PostgreSQL, you can query the `auth.users` and `auth.identities` table via the `SQL Editor` tab to extract all users:
```sql
select * from auth.users;
```
You can also opt to export the results via CSV through the dashboard if you wish:
![export_users.png](/docs/img/guides/auth-managing-user-data/export_users.png)
## Public access
Since Row Level Security is enabled, this table is accessible via the API but no data will be returned unless we set up some Policies.
Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB