Granting Access to a Role on newly created schema's automatically without manual intervention

404

nekkanti009

posted on 30 Oct 19

Enjoy great content like this and a lot more !

Signup for a free account to write a post / comment / upvote posts. Its simple and takes less than 5 seconds




nVector31-Oct-19

Forget Snowflake, this cannot be achieved in any database. And its not a secure practice.

If you still want to do it. 

1. You will need to manually check every 5 mins (or whatever interval is comfortable for you) for all the schemas that are newly created

2.And apply the grants to them

You can write a simple unix script utilizing snowsql commands to achieve this. You can then schedule this unix script to run using a cron scheduler or any other scheduler that your company uses

nekkanti00931-Oct-19

Thank you for the details, this helps. Really appreciate it.