fabriconelakedata-engineering

OneLake shortcuts... why are they so difficult?

Passthrough is the recommended option for OneLake shortcuts, but it does not work Out of the Box. The tables do not show up in the SQL analytics endpoint, and when they do, SELECT is denied.

August 21, 20266 min read

This week I tried to create a shortcut between lakehouses of two workspaces.

Diagram of a OneLake shortcut from a consumer lakehouse in Workspace B pointing at a producer lakehouse in Workspace A
A shortcut in the consumer lakehouse, pointing at a table in the producer lakehouse. Two workspaces.

A new option popped up: Connection method, with two options: Passthrough identity and Delegated identity.

Connection method dialog with Passthrough identity selected as recommended, Delegated identity as the other option
Passthrough uses the caller's permissions. Delegated uses one shared credential.

I went with Passthrough. It is the recommended option, and I already had access to both workspaces, so it felt like the obvious choice. Permissions follow the user. Done.

Nice and easy, no?

No.

Why is the table not showing up in the SQL analytics endpoint?

The shortcut table showed up in the lakehouse view. It did not show up in the SQL analytics endpoint.

Lakehouse explorer showing the example_shortcut table in Table view
The shortcut table shows up in the lakehouse view.
SQL analytics endpoint for reports_analysis with empty dbo Tables and a prompt to add data in lake mode
Same lakehouse, SQL analytics endpoint. No table. It thinks the warehouse is empty.

The weird thing was, a colleague of mine created a shortcut between the producer lakehouse and a new one he created, and his shortcut worked.

Turns out, I did not read the whole docs. There is an important warning:

So if I'm reading this right, this means that if the SQL analytics endpoint of the consumer lakehouse is in delegated identity mode, Fabric does not go to the producer lakehouse as me. It goes as the owner of the consumer lakehouse. But in the lakehouse view, the passthrough mode does not have these quirks.

On another page, there was another note: In delegated mode, the owner of the consumer lakehouse cannot be a service principal.

And that explained the difference between my shortcut and my colleague's shortcut.

  • The identity i created the consumer lakehouse with had no access to the producer workspace, so it did not work. And on top of that, it was a service principal, not a user. So it would not have worked even if it had access to the producer workspace.
  • My colleague created the consumer lakehouse himself. He as a user had access to the producer workspace, so the shortcut worked.

So I had two options. Keep delegated, change the owner of the consumer lakehouse to a user that has access to the producer. Or switch the consumer SQL endpoint to user identity mode, so it actually passes me through. I went with that. The troubleshooting docs say the same thing: if you want OneLake security to apply, switch the consumer endpoint to user identity mode.

To do so, open the SQL analytics endpoint, go to Security, then View data access mode.

A delegated identity is being used to access data.

We see a delegated identity is being used to access data. That is how a new lakehouse comes.

Click Data access mode settings and you get the actual choice.

Manage data access mode: User's identity vs Delegated identity
Same words as the shortcut dialog. New lakehouses come in on delegated: SQL security for all objects.

I switched the consumer lakehouse to Use OneLake security for tables. After that, the table showed up in the SQL analytics endpoint.

SQL analytics endpoint explorer showing example_shortcut under dbo Tables
After switching the consumer to OneLake security, the shortcut shows up in the SQL analytics endpoint.

Changing the access mode takes the SQL analytics endpoints in that workspace down for a bit, so don't do this in the middle of the day if people are querying.

Still... I could not query it?

I tried querying the table and got:

The SELECT permission or external policy action 'Microsoft.Sql/Sqlservers/Databases/Schemas/Tables/Rows/Select' was denied on the object '<table name>', database '<database name>', schema '<schema name>'.

User identity mode means both sides have to recognize the same identity. I was in both workspaces, but through different groups. That is not enough. This is not the case for delegated identity mode.

Microsoft docs: nested or effective group membership isn't resolved across the producer to consumer boundary
The same user or group has to be granted on both sides. Nested membership does not count.

Microsoft's troubleshooting docs say nested or effective group membership isn't resolved across the producer → consumer boundary. Object IDs have to match.

If the OneLake security role points at a user, that same user needs Fabric Read on the consumer lakehouse. If it points at a group, that same group needs Fabric Read on the consumer. Granting a user direct access to the consumer lakehouse, but via a group membership on the producer side, won't work. Even adding the user to two different groups that each have access will not work. The same user or group has to be granted on both sides.

I added the same groups to both workspaces. Then it worked.