Skip to content

Commit

Permalink
Grant lesetilgang på alle tabeller til cloudsqliam rollen
Browse files Browse the repository at this point in the history
  • Loading branch information
holymaloney committed Dec 10, 2024
1 parent 75a4f1f commit 6a5d67e
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
DO
$$
BEGIN
IF (SELECT exists(SELECT rolname FROM pg_roles WHERE rolname = 'cloudsqliamuser'))
THEN
ALTER DEFAULT PRIVILEGES IN SCHEMA veilarbaktivitet GRANT SELECT ON TABLES TO "cloudsqliamuser";
GRANT SELECT ON ALL TABLES IN SCHEMA veilarbaktivitet TO "cloudsqliamuser";
END IF;
END
$$;

0 comments on commit 6a5d67e

Please sign in to comment.