From 3206cb6eda64e88bb0a77a1512b0df47ed0e944b Mon Sep 17 00:00:00 2001 From: Thomas Yu Date: Thu, 17 Oct 2024 10:07:44 -0700 Subject: [PATCH] Add scidata admins --- admin/grants.sql | 12 ++++++++++++ admin/roles.sql | 5 ++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/admin/grants.sql b/admin/grants.sql index 387ef5d..4c8030f 100644 --- a/admin/grants.sql +++ b/admin/grants.sql @@ -73,6 +73,12 @@ TO ROLE SYSADMIN; GRANT ROLE NF_ADMIN TO USER "anh.nguyet.vu@sagebase.org"; +-- SCIDATA privileges +GRANT ROLE SCIDATA_ADMIN +TO ROLE SYSADMIN; +GRANT ROLE SCIDATA_ADMIN +TO USER "susheel.varma@sagebase.org"; + -- Data engineer privileges GRANT ROLE DATA_ENGINEER TO ROLE USERADMIN; @@ -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 diff --git a/admin/roles.sql b/admin/roles.sql index 21f1c53..5fa687c 100644 --- a/admin/roles.sql +++ b/admin/roles.sql @@ -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; \ No newline at end of file +CREATE ROLE IF NOT EXISTS NF_ADMIN; + +-- SCIDATA +CREATE ROLE IF NOT EXISTS SCIDATA_ADMIN;