© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•5mo ago•
28 replies
Faiz Khatri

Getting 403 even if policy allow read access to all users

I have created a
profiles
profiles
table that stores details of authenticated users. I have got this Idea from the documentation.

I'm using supabase for the first time. I have setup the policy of this table to "allow access to all users to read profiles." Still when I'm trying to make a query to the database, it returns the following error:
{
  error: {
    code: '42501',
    details: null,
    hint: null,
    message: 'permission denied for table profiles'
  },
  data: null,
  count: null,
  status: 403,
  statusText: 'Forbidden'
}
{
  error: {
    code: '42501',
    details: null,
    hint: null,
    message: 'permission denied for table profiles'
  },
  data: null,
  count: null,
  status: 403,
  statusText: 'Forbidden'
}


I'm using Next js with supabase. I don't have clue of what is wrong here.

Here's the log of API request if it helps:
message.txt7.56KB
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

Allow CRUD for all auth users
SupabaseSSupabase / help-and-questions
4y ago
Is it possible to only allow select filter with an id without enabling read access to all?
SupabaseSSupabase / help-and-questions
4y ago
Storage Policy - User Access to File
SupabaseSSupabase / help-and-questions
4y ago
Unable to add a policy to auth.users why ?
SupabaseSSupabase / help-and-questions
5mo ago