Skip to content

Commit

Permalink
grant create db privilege
Browse files Browse the repository at this point in the history
  • Loading branch information
jaymedina committed Feb 6, 2025
1 parent fdb27e6 commit cdcb9fd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions admin/grants.sql
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,13 @@ GRANT ROLE SYNAPSE_DATA_WAREHOUSE_ANALYST TO ROLE SYNAPSE_DATA_WAREHOUSE_ADMIN;
GRANT ROLE SYNAPSE_DATA_WAREHOUSE_DEV_ADMIN TO ROLE SYSADMIN;
GRANT ROLE SYNAPSE_DATA_WAREHOUSE_DEV_ANALYST TO ROLE SYNAPSE_DATA_WAREHOUSE_DEV_ADMIN;

-- CREATE DATABASE privileges on domain ADMIN roles
USE ROLE ACCOUNTADMIN;
GRANT CREATE DATABASE ON ACCOUNT TO ROLE SYNAPSE_DATA_WAREHOUSE_ADMIN;
GRANT CREATE DATABASE ON ACCOUNT TO ROLE SYNAPSE_DATA_WAREHOUSE_DEV_ADMIN;
-- Switch back to SECURITYADMIN role
USE ROLE SECURITYADMIN;

-- Allow SECURITYADMIN to deploy schemachange for versioned admin scripts
GRANT USAGE
ON DATABASE METADATA
Expand Down

0 comments on commit cdcb9fd

Please sign in to comment.