diff --git a/apps/docs/pages/guides/auth/managing-user-data.mdx b/apps/docs/pages/guides/auth/managing-user-data.mdx index 5c2580e6a91..1c6bc8e212a 100644 --- a/apps/docs/pages/guides/auth/managing-user-data.mdx +++ b/apps/docs/pages/guides/auth/managing-user-data.mdx @@ -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. +## 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. diff --git a/apps/docs/public/img/guides/auth-managing-user-data/export_users.png b/apps/docs/public/img/guides/auth-managing-user-data/export_users.png new file mode 100644 index 00000000000..2db47fee5e9 Binary files /dev/null and b/apps/docs/public/img/guides/auth-managing-user-data/export_users.png differ