© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
4 replies
erztemplerobba

Get user from auth.api

For my administrator page, I want to get a single user from the auth table (regardless if logged in or not). I am currently using
await supabase.auth.api.listUsers()
await supabase.auth.api.listUsers()
to get all users but I want to query only one specific user with their uid or email address.
In the docs, I've found only
user()
user()
and
getUser()
getUser()
which both seem to only get the user data of a currently logged in user.
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

get user function supabase.auth.user()
SupabaseSSupabase / help-and-questions
4y ago
Get auth user in function
SupabaseSSupabase / help-and-questions
4y ago
Get User by Phone Number or Email (supabase.auth.api)
SupabaseSSupabase / help-and-questions
4y ago
Cannot delete user from auth
SupabaseSSupabase / help-and-questions
4y ago