Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
dinesh01
Helper I
Helper I

How to grant access for specific tables to e-mail address in Fabric Data Warehouse and Lakehouse

How to grant access for specific tables to e-mail address in Fabric Data Warehouse and Lakehouse

2 ACCEPTED SOLUTIONS
NandanHegde
Super User
Super User

You can use Grant command to give access on specific tables in fabric warehouse:

https://learn.microsoft.com/en-us/sql/t-sql/statements/grant-transact-sql?view=fabric&preserve-view=...

 

for lakehouse, you can create a role:

NandanHegde_0-1720445535091.png

 




----------------------------------------------------------------------------------------------
Nandan Hegde (MSFT Data MVP)
LinkedIn Profile : www.linkedin.com/in/nandan-hegde-4a195a66
GitHUB Profile : https://github.com/NandanHegde15
Twitter Profile : @nandan_hegde15
MSFT MVP Profile : https://mvp.microsoft.com/en-US/MVP/profile/8977819f-95fb-ed11-8f6d-000d3a560942
Topmate : https://topmate.io/nandan_hegde
Blog :https://datasharkx.wordpress.com

View solution in original post

dinesh01
Helper I
Helper I

syntax to give permission on tables and schemas. Below works on both lakehouse and warehouse.

 

grant select on dbo.table_name to [myname@mail.com]

 

GRANT select on schema :: schema_name to [myname@mail.com]

 

 

View solution in original post

4 REPLIES 4
dinesh01
Helper I
Helper I

syntax to give permission on tables and schemas. Below works on both lakehouse and warehouse.

 

grant select on dbo.table_name to [myname@mail.com]

 

GRANT select on schema :: schema_name to [myname@mail.com]

 

 

v-huijiey-msft
Community Support
Community Support

Hi @dinesh01 ,

 

Your solution is great, @NandanHegde . It worked like a charm!

 

For Fabric Data Warehouse:

 

Assign workspace roles:

 

  • Go to your workspace and click Manage Access.
  • Click Add People or Groups.
  • Enter the user's email address.
  • Assign the appropriate role based on the level of access you want.

 

Grant granular permissions:

 

  • Navigate to a specific table in your warehouse.
  • Use SQL to set granular permissions for users. This can be done by assigning specific SQL permissions to a table or view.

 

For more information, please see:

SQL granular permissions - Microsoft Fabric | Microsoft Learn

 

For Lakehouse:

 

Share a Lakehouse:

 

  • Navigate to your workspace and select the ellipsis (...) next to the Lakehouse name.
  • Select Share from the More Options menu.
  • Enter the user's email address and select Grant.

 

Manage permissions:

 

  • To edit or remove permissions, go to the Lakehouse's direct access screen.
  • You can add custom permissions or remove access permissions as needed.

 

Folder-level access control:

 

  • Open Lakehouse and select Manage OneLake Data Access (Preview).
  • Create a new role and assign it to a specific folder in the Lakehouse.

 

For more information, please see:

Lakehouse sharing and permission management - Microsoft Fabric | Microsoft Learn

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

NandanHegde
Super User
Super User

You can use Grant command to give access on specific tables in fabric warehouse:

https://learn.microsoft.com/en-us/sql/t-sql/statements/grant-transact-sql?view=fabric&preserve-view=...

 

for lakehouse, you can create a role:

NandanHegde_0-1720445535091.png

 




----------------------------------------------------------------------------------------------
Nandan Hegde (MSFT Data MVP)
LinkedIn Profile : www.linkedin.com/in/nandan-hegde-4a195a66
GitHUB Profile : https://github.com/NandanHegde15
Twitter Profile : @nandan_hegde15
MSFT MVP Profile : https://mvp.microsoft.com/en-US/MVP/profile/8977819f-95fb-ed11-8f6d-000d3a560942
Topmate : https://topmate.io/nandan_hegde
Blog :https://datasharkx.wordpress.com
Jeanxyz
Impactful Individual
Impactful Individual

It might sound like a stupid question. I have given a user access to a table in Fabric warehouse via the grant command, but as this user doesn't have acess to the Fabric warehouse, how can he/she access the table? I tried the absf path and Power BI desktop - onelake hub, neither works. 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors
Top Kudoed Authors