Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

GRANT EXECUTE auth schema for `authenticated`, `anon`, `service role` (#1377)

jasonho-lynx2f4d03b7a6c7
diff --git a/docker/postgres/auth-schema.sql b/docker/postgres/auth-schema.sql
index 96792d06328..5f94a5dd281 100644
--- a/docker/postgres/auth-schema.sql
+++ b/docker/postgres/auth-schema.sql
@@ -88,4 +88,6 @@ $$ language sql stable;
GRANT ALL PRIVILEGES ON SCHEMA auth TO postgres;
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA auth TO postgres;
GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA auth TO postgres;
-ALTER ROLE postgres SET search_path = "$user", public, auth;
\ No newline at end of file
+ALTER ROLE postgres SET search_path = "$user", public, auth;
+
+GRANT USAGE ON SCHEMA auth TO anon, authenticated, service_role;