© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3mo ago•
21 replies
Remmy

function auth.uid() does not exist

I've got a supabase project which i'm trying to set up some super basic RLS policies, and getting the above error.

Example:
create policy "Enable users to view their own data only"
on "public"."profiles"
as PERMISSIVE
for SELECT
to authenticated
using (
(select auth.uid()) = user_id
);

and get the error:
Failed to run sql query: ERROR: 42883: function auth.uid() does not exist
HINT: No function matches the given name and argument types. You might need to add explicit type casts.

This is when creating it via the supabase UI. No idea how/why this has happened, and the AI assistant has been thus far... unhelpful 🙂
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

function auth.jwt() does not exist for local RLS?
SupabaseSSupabase / help-and-questions
4y ago
auth.uid() question
SupabaseSSupabase / help-and-questions
8mo ago
function uuid_generate_v4() does not exist
SupabaseSSupabase / help-and-questions
4y ago
RLS and auth.uid()
SupabaseSSupabase / help-and-questions
4y ago