Forum Discussion
OneLake Security CLS/RLS issue
- 5 months ago
Hi AditiPattnaik,
Thank you for the detailed explanation and screenshots.Based on your scenario, the behaviour you are seeing is expected when One Lake security (CLS/RLS) is enabled and the SQL analytics endpoint is configured to use User identity. Workspace roles such as Viewer only allow users to see metadata (like table names), but actual data access is controlled separately through One Lake security permissions.
Once CLS/RLS is applied, users must be explicitly granted Read permission at the schema, table, or folder level using Manage One Lake security. Without this Read permission, the Lakehouse UI cannot preview the data, and the SQL analytics endpoint will return errors such as SELECT permission was denied.
To resolve this, please open the Lakehouse, select the affected schema or table, and use Manage One Lake security to grant the user Read permission. After allowing a short time for permission propagation, the user should be able to preview and query the data successfully, while CLS/RLS continues to enforce the intended restrictions.
Refer these links:
1. https://learn.microsoft.com/en-us/fabric/onelake/security/data-access-control-model
2. https://learn.microsoft.com/en-us/fabric/onelake/security/get-started-security
3. https://learn.microsoft.com/en-us/fabric/data-engineering/workspace-roles-lakehouse
4. https://learn.microsoft.com/en-gb/fabric/data-engineering/lakehouse-sql-analytics-endpointHope this clarifies. Let us know if you have any doubts regarding this. We will be happy to help.
Thank you for using the Microsoft Fabric Community Forum.
Hi AditiPattnaik,
Thank you for the detailed explanation and screenshots.
Based on your scenario, the behaviour you are seeing is expected when One Lake security (CLS/RLS) is enabled and the SQL analytics endpoint is configured to use User identity. Workspace roles such as Viewer only allow users to see metadata (like table names), but actual data access is controlled separately through One Lake security permissions.
Once CLS/RLS is applied, users must be explicitly granted Read permission at the schema, table, or folder level using Manage One Lake security. Without this Read permission, the Lakehouse UI cannot preview the data, and the SQL analytics endpoint will return errors such as SELECT permission was denied.
To resolve this, please open the Lakehouse, select the affected schema or table, and use Manage One Lake security to grant the user Read permission. After allowing a short time for permission propagation, the user should be able to preview and query the data successfully, while CLS/RLS continues to enforce the intended restrictions.
Refer these links:
1. https://learn.microsoft.com/en-us/fabric/onelake/security/data-access-control-model
2. https://learn.microsoft.com/en-us/fabric/onelake/security/get-started-security
3. https://learn.microsoft.com/en-us/fabric/data-engineering/workspace-roles-lakehouse
4. https://learn.microsoft.com/en-gb/fabric/data-engineering/lakehouse-sql-analytics-endpoint
Hope this clarifies. Let us know if you have any doubts regarding this. We will be happy to help.
Thank you for using the Microsoft Fabric Community Forum.
I am getting the same issue and have followed all the required steps. Gave it good enough time for permissions to sync but still the error. Tried it both on non schema and schema enabled lakehouse. Both got the same error.
What am I doing wrong in here?
Strangely if I remove the row level security query the user doesn't get any error and is able to view the data.
Non schema enabled lakehouse setup and error
An error occurred.
Message : User is not authorized to access the files in storage path '/074314b1-3165-46b6-b217-ba55daf9bf71/e693dc03-27ec-4f6a-8f2e-1507546ebd3b/Tables/customer/_delta_log' for the table.
Error Code : UnauthorizedToAccessTableFiles
Error source : 1
Schema enabled lakehouse setup and error
An error occurred.
Message : User is not authorized to access the files in storage path '/074314b1-3165-46b6-b217-ba55daf9bf71/7b19579d-f053-47fd-95d9-3fd68e0407ff/Tables/dbo/salesorderheader/_delta_log' for the table.
Error Code : UnauthorizedToAccessTableFiles
Error source : 1