© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
9 replies
uness

ListUsers() : AuthApiError 401 ?

hi guys
export async function getUsers() {
  const cookieStore = cookies();
  const supabase = await createClient(cookieStore);
  const result = await supabase.auth.admin.listUsers();
  return result;
}
export async function getUsers() {
  const cookieStore = cookies();
  const supabase = await createClient(cookieStore);
  const result = await supabase.auth.admin.listUsers();
  return result;
}

i get this error when calling my server action AuthApiError: User not allowed status:401
any help ?
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

AuthApiError
SupabaseSSupabase / help-and-questions
4y ago
admin.listUsers()
SupabaseSSupabase / help-and-questions
4y ago
How to investigate AuthApiError
SupabaseSSupabase / help-and-questions
4y ago
AuthApiError Internal server error
SupabaseSSupabase / help-and-questions
4y ago