Skip to content

Commit

Permalink
Merge pull request #41 from Sage-Bionetworks/create-governance-role
Browse files Browse the repository at this point in the history
Create governance role
  • Loading branch information
thomasyu888 authored May 17, 2024
2 parents c774da9 + a8c26b0 commit 7c3d1b0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
22 changes: 22 additions & 0 deletions admin/grants.sql
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ GRANT ROLE FAIR TO USER "[email protected]";
GRANT ROLE DPE_OPS TO USER "[email protected]";
GRANT ROLE DPE_OPS TO USER "[email protected]";

GRANT ROLE GOVERNANCE TO USER "[email protected]";
GRANT ROLE GOVERNANCE TO USER "[email protected]";
GRANT ROLE GOVERNANCE TO USER "[email protected]";

-- Create governance privileges
GRANT ROLE MASKING_ADMIN
TO USER "[email protected]";
Expand Down Expand Up @@ -298,6 +302,24 @@ TO ROLE DATA_ENGINEER;
-- TO ROLE DATA_ENGINEER;
-- GRANT ALL PRIVILEGES ON ALL STREAMS IN DATABASE SYNAPSE_DATA_WAREHOUSE_DEV
-- TO ROLE DATA_ENGINEER;
GRANT USAGE ON DATABASE SYNAPSE_DATA_WAREHOUSE
TO ROLE GOVERNANCE;
GRANT USAGE ON ALL SCHEMAS IN DATABASE SYNAPSE_DATA_WAREHOUSE
TO ROLE GOVERNANCE;
GRANT SELECT ON ALL TABLES IN DATABASE SYNAPSE_DATA_WAREHOUSE
TO ROLE GOVERNANCE;
GRANT SELECT ON ALL VIEWS IN DATABASE SYNAPSE_DATA_WAREHOUSE
TO ROLE GOVERNANCE;
GRANT SELECT ON ALL DYNAMIC TABLES IN DATABASE SYNAPSE_DATA_WAREHOUSE
TO ROLE GOVERNANCE;
GRANT USAGE ON FUTURE SCHEMAS IN DATABASE SYNAPSE_DATA_WAREHOUSE
TO ROLE GOVERNANCE;
GRANT SELECT ON FUTURE TABLES IN DATABASE SYNAPSE_DATA_WAREHOUSE
TO ROLE GOVERNANCE;
GRANT SELECT ON FUTURE VIEWS IN DATABASE SYNAPSE_DATA_WAREHOUSE
TO ROLE GOVERNANCE;
GRANT SELECT ON FUTURE DYNAMIC TABLES IN DATABASE SYNAPSE_DATA_WAREHOUSE
TO ROLE GOVERNANCE;


-- Sage database privileges
Expand Down
2 changes: 2 additions & 0 deletions admin/roles.sql
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ CREATE ROLE IF NOT EXISTS AD;

-- FAIR
CREATE ROLE IF NOT EXISTS FAIR;
-- GOVERNANCE
CREATE ROLE IF NOT EXISTS GOVERNANCE;

0 comments on commit 7c3d1b0

Please sign in to comment.