Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create governance role #41

Merged
merged 1 commit into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;