Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredJoin us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered
I have 2 workspaces and 2 user accounts; 1st account has member access on both workspaces and 2nd account has member access only on workspace 2.
Workspace 1 consist of Lakehouse and Warehouse whereas workspace 2 has a Lakehouse, all these are created by user 1 account.
Shortcuts have been created in Workspace 2 Lakehouse pointing to Workspace1 Lakehouse and warehouse.
When checking via 2nd user account, files are not visible as shown below-
Tables give the error as user unauthorized but still I can preview the data when clicked on table name
While going through Microsoft docs came across the reason as calling item owner’s identity is passed
https://learn.microsoft.com/en-us/fabric/onelake/onelake-shortcuts
Then user 2 has taken over lakehouse present in workspace 2 and still I am able to see data in tables.
So, when the doc mentions calling item owner’s identity is used, exactly which user’s identity is considered here, the one that has taken over the Lakehouse or the user that has created Lakehouse in Workspace 1.
You are still able to see the data due to cache.
Try checking after sometime and you should see a failure :
So as stated by @burakkaragoz the owner of the lakehouse that has the shortcut is used for authentication and authrozation for SQL and dataset aspects
Hi @PriyaJha ,
You have described the scenario and your observations very clearly. Here’s how the user identity resolution works for OneLake shortcuts in Lakehouse T-SQL endpoints, based on Microsoft’s documentation and your examples.
How identity is determined when accessing data via shortcut in Lakehouse T-SQL endpoint:
In practice, this means:
Reference:
The highlighted documentation confirms:
"The calling item owner's identity is passed instead [of the calling user], delegating access to the calling item."
Summary Table:
Lakehouse Owner Query Executed By Whose Identity is Used in Shortcut Data Access Depends On
User 1 | User 2 | User 1 | User 1's permissions |
User 2 (after transfer) | User 2 | User 2 | User 2's permissions |
Key Takeaway:
The identity used for accessing data via shortcuts is always the current owner of the Lakehouse, not the user running the query. If you want to change this, you must transfer ownership of the Lakehouse to the intended user.
Let me know if you need details on how to transfer ownership, or if you have further questions about OneLake security or shortcuts!
Hi @burakkaragoz,
Thanks for your reply.
I still have one question, when we are in lakehouse mode and i click on one of the table names in the table section and preview of the table is visible, this preview that it is showing is via which authentication? Is it using T-SQL auth or via Spark?
Hi @PriyaJha,
When working in Lakehouse mode in Microsoft Fabric and by clicking on a table name to view its preview, the data is actually being fetched using Spark, behind the scenes it is a Spark based query that pulls a sample of the data.
This means the authentication being used in that moment is tied to Spark, which uses your Fabric identity to authorize the action. T-SQL authentication only comes into play if you are accessing the data through the SQL analytics endpoint, such as when you're connecting from Power BI or writing T-SQL queries directly through the SQL interface.
So, to put it simply: when you preview a table from the Lakehouse UI, it's Spark doing the work in the background, not T-SQL.
Thanks,
Prashanth Are
MS Fabric community support
Hi @v-prasare,
So which authentication is being used by spark query?
Is it the calling item owner id or the user's id?
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
74 | |
48 | |
16 | |
12 | |
7 |
User | Count |
---|---|
81 | |
81 | |
27 | |
8 | |
7 |