Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!View all the Fabric Data Days sessions on demand. View schedule
I need to grant access (via code) to a Table in an specific schema for an Entra Security Group accesing a lakehouse using SQL endpoint.
I can run a sql query using GRANT statement in lakehouse\sql-endpoint UI, but the challenge is to run it from a junyper notebook.
Solved! Go to Solution.
Hi @yllsuarez76 ,
You can execute a GRANT statement on a Fabric Lakehouse SQL Endpoint from a notebook by connecting to the endpoint using an ODBC connection. This allows you to run SQL commands, including permission-related queries, from your notebook.
Here’s how you can approach it:
If this helps, then please Accept it as a solution and dropping a "Kudos" so other members can find it more easily.
Thank you.
Hi @yllsuarez76
I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please Accept it as a solution and give it a 'Kudos' so others can find it easily.
Thank you.
Hi @yllsuarez76
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.
Hi @yllsuarez76
May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you.
Hi @yllsuarez76 ,
You can execute a GRANT statement on a Fabric Lakehouse SQL Endpoint from a notebook by connecting to the endpoint using an ODBC connection. This allows you to run SQL commands, including permission-related queries, from your notebook.
Here’s how you can approach it:
If this helps, then please Accept it as a solution and dropping a "Kudos" so other members can find it more easily.
Thank you.