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
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.
how would i do one of those?
like i said im new and im not sure what you meant exactly
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
New can mean alot of things. But I assume if you are trying to list users you have an app up and going.
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