cancel
Showing results for 
Search instead for 
Did you mean: 
Warehousing & Analytics
Engage in discussions on data warehousing, analytics, and BI solutions within the Databricks Community. Share insights, tips, and best practices for leveraging data for informed decision-making.
cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic GRANT

jackintosh
New Contributor

Hello,

I am struggling trying to assign permission dynamically on a schema. I am using databricks asset bundle and I have a parametrized script to assign permission.

grant select on schema {{schema}} to {{group}};

I cannot achieve a dynamic grant statement. I also tried running on a notebook something like

execute immediate 'grant select on schema ? to ?' using ('my_schema', '`my_group`');

 but unfortunately this does not work. From docs it seems it can be achievable with IDENTIFUER clause, I tried also that but without success. It throws syntax error.

It this achievable in some way or not? Thanks in advance.

0 REPLIES 0

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now