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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
dinesh01
New Contributor III

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
Valued Contributor II

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
New Contributor III

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

5 REPLIES 5
NandanHegde
Valued Contributor II

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
Valued Contributor

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. 

Anonymous
Not applicable

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!

dinesh01
New Contributor III

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]

 

 

Can I use this to grant select access to a onelake security role?

Helpful resources

Announcements
Users online (27)