This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CREATE A READ ONLY GROUP | |
create role read_only_svc_rl comment = 'This role is limited to querying tables'; | |
grant role read_only_svc_rl to role sysadmin; | |
# GRANT USAGE ON DATABASE | |
grant usage on database databots_prod to role read_only_svc_rl; | |
# GRANT USAGE ON CURRENT SCHEMAS AND FUTURE SCHEMAS | |
grant usage on all schemas in database databots_prod to role read_only_svc_rl; | |
grant usage on future schemas in database databots_prod to role read_only_svc_rl; |