© 2026 Hedgehog Software, LLC

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

Who's uuid is used when doing auth.uid() in a security definer function?

According to the functions page, a security definer is executed with the privileges of the user that created it. When calling auth.uid(), would it use the uuid of the person who called it?
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

RLS + Security definer ?
SupabaseSSupabase / help-and-questions
4mo ago
Security Definer Functions - Custom Roles
SupabaseSSupabase / help-and-questions
13mo ago
Get auth.uid() in triggered functions?
SupabaseSSupabase / help-and-questions
4y ago
function auth.uid() does not exist
SupabaseSSupabase / help-and-questions
3mo ago