How do i list all users?

Someone please help me im new to web development and im trying to list all users using react but im not sure how to do it
5 Replies
garyaustin
garyaustin2y ago
If you have a public profiles/users table like the user management and most guides show you can just select from that. Otherwise there is an auth admin call to list users. Finally you can use an rpc call to a security definer postgres function to select from auth.users.
! Yousefqdb
! YousefqdbOP2y ago
how would i do one of those? like i said im new and im not sure what you meant exactly
garyaustin
garyaustin2y ago
You probably should provide some info on where you want to get this list. Also did you already do the user management starter with trigger functions to generate a profile table. The easiest thing to do is just use the auth admin call serverside in your code. https://supabase.com/docs/reference/javascript/auth-admin-listusers
garyaustin
garyaustin2y ago
New can mean alot of things. But I assume if you are trying to list users you have an app up and going.
! Yousefqdb
! YousefqdbOP2y ago
hello sorry for the very late reponse everything is already setup i just need to know how to get all user data and put it in a table or put the data in an array

Did you find this page helpful?