Skip to content

Commit

Permalink
Fix granting of roles
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasyu888 committed Oct 18, 2024
1 parent 3206cb6 commit 7fc5b5d
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions admin/grants.sql
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ TO ROLE PUBLIC;

-- GENIE privileges
GRANT ROLE GENIE_ADMIN
TO ROLE USERADMIN;
TO ROLE SYSADMIN;
GRANT ROLE GENIE_ADMIN
TO USER "[email protected]";
GRANT ROLE GENIE_ADMIN
Expand All @@ -45,9 +45,9 @@ TO USER "[email protected]";

-- RECOVER privileges
GRANT ROLE RECOVER_DATA_ENGINEER
TO ROLE USERADMIN;
TO ROLE SYSADMIN;
GRANT ROLE RECOVER_DATA_ANALYTICS
TO ROLE USERADMIN;
TO ROLE RECOVER_DATA_ENGINEER;
GRANT ROLE RECOVER_DATA_ENGINEER
TO USER "[email protected]";
GRANT ROLE RECOVER_DATA_ENGINEER
Expand All @@ -59,7 +59,7 @@ TO USER RECOVER_SERVICE;

-- AD privileges
GRANT ROLE AD
TO ROLE USERADMIN;
TO ROLE SYSADMIN;
GRANT ROLE AD
TO USER "[email protected]";
GRANT ROLE AD
Expand All @@ -72,16 +72,20 @@ GRANT ROLE NF_ADMIN
TO ROLE SYSADMIN;
GRANT ROLE NF_ADMIN
TO USER "[email protected]";
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]";
GRANT ROLE SCIDATA_ADMIN
TO USER "[email protected]";

-- Data engineer privileges
GRANT ROLE DATA_ENGINEER
TO ROLE USERADMIN;
TO ROLE SYSADMIN;
GRANT ROLE DATA_ENGINEER
TO USER "[email protected]";
GRANT ROLE DATA_ENGINEER
Expand Down Expand Up @@ -190,6 +194,10 @@ GRANT ROLE SAGE_LEADERS TO USER "[email protected]";
GRANT ROLE SAGE_LEADERS TO USER "[email protected]";
GRANT ROLE SAGE_LEADERS TO USER "[email protected]";
GRANT ROLE DATA_ANALYTICS TO ROLE SAGE_LEADERS;
GRANT ROLE DATA_ANALYTICS TO ROLE SCIDATA_ADMIN;
GRANT ROLE DATA_ANALYTICS TO ROLE NF_ADMIN;
GRANT ROLE DATA_ANALYTICS TO ROLE GENIE_ADMIN;
GRANT ROLE DATA_ANALYTICS TO ROLE AD;

GRANT ROLE FAIR TO USER "[email protected]";
GRANT ROLE FAIR TO USER "[email protected]";
Expand Down

0 comments on commit 7fc5b5d

Please sign in to comment.