© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
29 replies
suethepooh

service role can't access storage objects

I have a bucket with RLS that allows anon to insert, but only authenticated users to select, update or delete. Anon portion is working properly. Attempting to select files in bucket via the service role returns undefined:

await supabase.storage.from('uploads').list('folder')
await supabase.storage.from('uploads').list('folder')


No error is thrown. There are definitely files in the "uploads" bucket. I've attempted this with and without RLS policies for the service role with no success in either scenario.

The service role key I'm using does successfully retrieve data from a table that has RLS set to only authorized users, so I know it's not a problem with the key.

Is there some setting I'm overlooking? I thought service role was a super user and could bypass all policies.
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

storage.objects
SupabaseSSupabase / help-and-questions
4mo ago
Can't read tables with service role
SupabaseSSupabase / help-and-questions
6mo ago
Can I access JSON data of a storage.objects uploaded file ?
SupabaseSSupabase / help-and-questions
4y ago
Supabase dashboard storage service role 404 response (local instance)
SupabaseSSupabase / help-and-questions
5mo ago