Skip to content

Commit

Permalink
Give read access on motebehov to DVH except one column
Browse files Browse the repository at this point in the history
  • Loading branch information
geir-waagboe committed Jan 18, 2024
1 parent ab0f1ba commit 5546fc8
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/main/resources/db/migration/R__grant_to_cloudsqliamuser.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
REVOKE ALL ON ALL TABLES IN SCHEMA public FROM cloudsqliamuser;
REVOKE ALL ON ALL TABLES IN SCHEMA public FROM "[email protected]";
REVOKE ALL ON ALL TABLES IN SCHEMA public FROM "[email protected]";

GRANT SELECT ON ALL TABLES IN SCHEMA public TO cloudsqliamuser;

GRANT SELECT(
id,
motebehov_uuid,
opprettet_dato,
opprettet_av,
virksomhetsnummer,
har_motebehov,
tildelt_enhet,
behandlet_tidspunkt,
behandlet_veileder_ident,
skjematype,
sm_fnr,
opprettet_av_fnr)
ON motebehov to "[email protected]";

0 comments on commit 5546fc8

Please sign in to comment.