Skip to content

Commit

Permalink
Add scidata admins
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasyu888 committed Oct 17, 2024
1 parent 3757ba5 commit 3206cb6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
12 changes: 12 additions & 0 deletions admin/grants.sql
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ TO ROLE SYSADMIN;
GRANT ROLE NF_ADMIN
TO USER "[email protected]";

-- SCIDATA privileges
GRANT ROLE SCIDATA_ADMIN
TO ROLE SYSADMIN;
GRANT ROLE SCIDATA_ADMIN
TO USER "[email protected]";

-- Data engineer privileges
GRANT ROLE DATA_ENGINEER
TO ROLE USERADMIN;
Expand Down Expand Up @@ -427,6 +433,12 @@ USE SCHEMA SAGE.NF;
GRANT ALL PRIVILEGES ON SCHEMA NF
TO ROLE NF_ADMIN;

-- SCIDATA database privileges
USE SCHEMA SAGE.SCIDATA;
GRANT ALL PRIVILEGES ON SCHEMA SCIDATA
TO ROLE SCIDATA_ADMIN;


-- GENIE database privileges
USE DATABASE GENIE;
GRANT USAGE ON DATABASE GENIE
Expand Down
5 changes: 4 additions & 1 deletion admin/roles.sql
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,7 @@ CREATE ROLE IF NOT EXISTS TASKADMIN;
CREATE ROLE IF NOT EXISTS SAGE_LEADERS;

-- NF
CREATE ROLE IF NOT EXISTS NF_ADMIN;
CREATE ROLE IF NOT EXISTS NF_ADMIN;

-- SCIDATA
CREATE ROLE IF NOT EXISTS SCIDATA_ADMIN;

0 comments on commit 3206cb6

Please sign in to comment.