DirectQuery SSO: Verify the Identity Behind Each Query
DirectQuery SSO passes supported user identities to data sources. Check gateway setup, source support and access rights before sharing lakehouse BI.
DirectQuery SSO propagates the identity of the person interacting with a report to the underlying data source, so the source — not the gateway — decides which rows that person can read. Verifying it means comparing two records of the same query: the principal the source authenticated, and the result the report returned. A gateway setting that reports SSO as enabled proves configuration, not propagation. This guide covers only the data sources and authentication methods that Microsoft documents as supported for gateway SSO, and it makes no claim that any Singdata connector supports gateway SSO. It delivers two things you can run against your own tenant: an A/B verification table that states the expected outcome for each identity scenario, and a numbered procedure that confirms the principal in the source's own audit log.
Why "SSO is configured" is not the same as "SSO is working"
Three distinct failures produce the same reassuring toggle. First, a gateway data source can be created with stored credentials and SSO never enabled, and Microsoft documents that unless SSO is configured, DirectQuery uses the configured stored credentials for all viewers — so every query runs as one principal, whatever the report appears to show. Second, SSO can be enabled while the identity fails to map, because a UPN has no matching source principal or a mapping attribute is missing, and the query then executes as somebody other than the person who signed in. Third, the connection can authenticate correctly and the source's own grants can still return the wrong rows: SSO changes who connects, not what that principal may read. Keep the interactive path and the refresh path separate as well, because they resolve to different identities and a result from one says nothing about the other.
Which identity reaches the source, and when
Interactive queries and scheduled refreshes do not resolve to the same identity. When a user interacts with a DirectQuery report in the Power BI service through the web experience or mobile apps, each cross-filter, slice, sort, or report editing operation can execute live against the source under that user's identity, so each user sees the data their source permissions allow (SSO overview, last updated July 1, 2026). A refresh configured for SSO instead runs under the dataset owner's identity within Power BI, and refresh using SSO is currently enabled only for data sources that use Kerberos constrained delegation. The three gateway SSO options split further: Use SSO via Kerberos for DirectQuery queries uses the signed-in user for DirectQuery but the entered credentials for import; Use SSO via Kerberos for DirectQuery And Import queries uses the signed-in user for DirectQuery and the semantic model owner's context for import; Microsoft Entra SSO applies to DirectQuery only. AD SSO, meaning Kerberos or SAML, serves on-premises sources, while Entra SSO serves cloud sources that sit behind a virtual network. Connection mode is part of this decision, and the trade-offs are compared in Singdata's Import vs DirectQuery guide.
Supported sources and authentication methods
Scope is decided before any test runs. Microsoft's SSO overview lists the supported combinations by authentication type: Amazon Redshift, Azure Databricks, Azure Data Explorer, Azure SQL, Azure Synapse Analytics, Dremio Cloud, Snowflake and Denodo under Microsoft Entra ID; Hive LLAP, Impala, Oracle, SAP BW Application Server and Message Server, Spark, SQL Server, Teradata and Tibco Data Virtualization under Kerberos; Denodo also under Kerberos; and SAP HANA under Kerberos and SAML.
Counts are of the data sources Microsoft lists for gateway SSO, grouped by the authentication method documented for each. Denodo (Kerberos and Microsoft Entra ID) and SAP HANA (Kerberos and SAML) appear under every method they are documented for, so the bars sum to 20 placements across 18 distinct sources. AD SSO (Kerberos, SAML) supports DirectQuery or refresh, while Entra SSO supports DirectQuery only — and the Entra ID SSO option inside a gateway data source is narrower still, available only for SQL Server, Azure Data Explorer, Snowflake and Denodo, and only where the tenant admin allows it.
The exclusions matter just as much: SSO is supported by Power BI datasets and not by Power BI dataflows, Power BI does not support SSO for M extensions, Analysis Services uses live connections rather than Kerberos or SAML, and DNS aliasing with SSO is not supported. The Entra SSO option in the gateway connection is narrower than the full SSO list — Microsoft limits it to SQL Server, Azure Data Explorer, Snowflake and Denodo, and only when the tenant admin allows Entra SSO through the gateway (that page was last updated September 24, 2026). If your source and authentication method are not on these lists, no amount of gateway configuration will propagate an end-user identity.
Build the A/B verification table
The table is a specification, not a report: each row states what you expect to observe before you observe it, so a mismatch is visible instead of rationalized. Fill the audit column from the data source's own logging rather than from Power BI, because the source is what records the authenticated principal and the authorization outcome. Where a row says the gateway authentication is the same as User A, keep the data source, SSO mode and gateway cluster identical for both accounts; changing any of them invalidates the comparison.
Scenario | Report identity (who signs in) | Gateway authentication | Expected data-source user | Expected query result | Audit record to confirm |
|---|---|---|---|---|---|
A — SSO on, A has source grants | User A | SSO via Kerberos or Entra, DirectQuery | User A (mapped source principal) | Rows permitted to A | Source log shows A's principal for the query |
B — SSO on, B has narrower grants | User B | Same as A | User B | Only B's narrower row set | Source log shows B's principal, distinct from A |
C — Negative test, A's source grants withheld | User A | Same as A | User A | Denied or empty, not the full dataset | Source log shows A's principal and a failed or filtered query |
D — SSO off, stored credentials | User A or B | Stored credential | The configured credential's principal | Identical for A and B | Source log shows the stored principal for both |
E — Scheduled refresh | Dataset owner (not the viewer) | Kerberos constrained delegation | Dataset owner's mapped principal | Owner-scoped rows | Source log shows the owner's principal at refresh time |
Run the verification: numbered steps
Run the steps in order. Each one removes a way the test could pass for the wrong reason, and the checkpoint after the two baseline captures is where a shared credential most often shows up.
Confirm scope. Check the data source and the authentication method against the supported lists before configuring anything. If the pair is not listed, stop — the remaining steps do not apply.
Check the gateway data source setting. In the Power BI service, open Settings > Manage connections and gateways, select the data source, and confirm the Single sign-on option matches the intended mode: Kerberos for DirectQuery, Kerberos for DirectQuery and Import, or Entra ID for DirectQuery.
Check the tenant setting. For Entra SSO, confirm the tenant admin allows Microsoft Entra SSO via the on-premises data gateway; the option is unavailable otherwise.
Verify user mapping. Confirm each Power BI sign-in UPN resolves to a source principal, through Microsoft Entra Connect synchronization or through the gateway's user-mapping attributes where the UPNs differ.
Capture User A's baseline. Sign in as User A, interact with a single visual, and record the source-side audit entry: principal, timestamp, and the query text or object touched.
Capture User B's baseline. Repeat against the same visual and record the same three fields.
Run the negative test. Withhold User A's source grants, sign in as A, and record whether the query is denied or returns an empty set instead of the full dataset.
Run the stored-credential comparison. Turn SSO off for the data source, repeat steps 5 and 6, and confirm both accounts now produce the same source principal.
Checkpoint: after steps 5 and 6, the two audit entries must show different principals. Identical principals mean the queries are running under a shared credential, whatever the SSO setting reports. Microsoft's test SSO configuration page is a quick check that the configuration is set correctly, but it does not replace the source-side comparison.
Correlate gateway authentication with source-side audit records
The evidence you need is a matched pair: one gateway authentication record and one source-side authorization record for the same query. Match on three fields — a timestamp window, the query text or object touched, and the principal — and treat the principal as decisive, because it is the field SSO is supposed to change. Two practical obstacles complicate the join. Clock skew between the gateway host and the source can shift the window by seconds or minutes, so compare inside a generous window rather than an exact timestamp. Connection pooling can also obscure per-query attribution, since a pooled session may not reopen for every interaction. Narrow the test to one visual with a distinctive filter so the query is identifiable in both logs; the gateway records authentication events while the source records authorization outcomes, and neither record alone proves which identity ran the query.
How propagated identity interacts with lakehouse grants, row filters and column masking
A propagated identity only matters if the data platform enforces something with it. Microsoft Fabric evaluates access in sequence — Entra authentication, then Fabric access, then data security on a table or file — so a propagated identity still has to clear each level before a row is returned. Row filtering then comes from two places that are easy to conflate. With DirectQuery, the source applies its own security rules to the credentials it receives, while imported data relies on row-level security defined in the semantic model (DirectQuery in Power BI); SSO changes which identity reaches the source and does not remove the need to define and test model-level filters. Column-level restriction is a separate mechanism, object-level security, rather than something RLS provides. For the lakehouse equivalent, this guide to read-only SQL access with row-level security covers how role-based filtering reaches query interfaces. Row scope itself is documented as a query-time control in Singdata's row-level permissions documentation, and the FAQ below covers the role-simulation limitation that makes real user accounts necessary.
Common mistakes that produce a false pass
Each of these produces a plausible-looking result while SSO is absent, misconfigured or unused. Test the symptom and apply the correction.
Testing with a workspace Admin, Member, or Contributor. Row-level security applies only to users with Viewer permissions, so an elevated account can see unfiltered data even when identity propagation works (RLS with Power BI). Retest with a Viewer-role account.
Comparing report output without checking the source principal. A shared credential can return rows that look plausible for both users. The principal recorded at the source is the field that settles the question.
Leaving stored credentials in place and assuming the SSO option overrides them. Reproduce the stored-credential comparison in the table and confirm whether both accounts collapse onto one principal.
Testing only the refresh path. Refresh runs as the dataset owner, so a clean refresh says nothing about interactive propagation. Test both paths.
Using Test as role on a DirectQuery model with SSO enabled. The feature does not work in that configuration; sign in as an actual Viewer-role user instead.
Testing a source or authentication combination outside the supported lists. Fix scope first; configuration cannot compensate for an unsupported pair.
Trusting a configuration review instead of a measured result. Singdata's RBAC and row-level security practice guide makes the same point for enforced access: a control has to be demonstrated, not assumed.
Acceptance checklist before you sign off
Run this list against your own tenant and mark each item pass or fail. A single fail means the identity has not been verified for that path, whatever the gateway setting reports.
Source and authentication method confirmed on Microsoft's supported list.
Gateway data source SSO option matches the intended mode for DirectQuery and for import.
Tenant setting for Entra SSO confirmed where the Entra option is used.
User mapping verified for both test accounts, including UPN differences.
User A and User B produce distinct source principals in the audit log.
Negative test denies the query or returns an empty set instead of the full dataset.
Stored-credential comparison produces one shared principal.
Refresh path tested separately and attributed to the dataset owner.
Both test accounts hold the Viewer role, not an elevated workspace role.
Where this fits in a lakehouse architecture
On the lakehouse side, the standing of that identity is the whole point. When BI queries land on lakehouse tables, the identity that arrives decides which grants, row filters and masks apply, so confirming it belongs in the same change process as schema and permission updates rather than in a one-time gateway checklist. A practical discipline is to rerun the A/B comparison after gateway upgrades, user-mapping changes, or new workspace roles, and to file the source principal alongside the change record. Singdata, the publisher of this article, positions its lakehouse around a single semantic layer and one set of permissions across its engine and interfaces — see the AI-Native Data Lakehouse product page and the platform documentation — which gives the company a commercial interest in how arriving identity is verified; nothing here asserts that any Singdata connector supports gateway SSO.
FAQ
The questions below decide whether a test result is trustworthy.
Does DirectQuery SSO work for Power BI dataflows?
No. Microsoft states that SSO is supported by Power BI datasets and not by Power BI dataflows (SSO overview). A dataflow path therefore does not inherit a dataset-level SSO result, and the same gateway data source can behave differently for each workload. Verify the identity path for the dataflow separately instead of assuming the dataset outcome carries over.
Why do two users see the same data even though SSO is enabled?
The usual causes are a mapping gap that resolves both users to the same source principal, stored credentials that are still active because the SSO option was never applied, or workspace roles that row-level security does not restrict, because RLS applies only to users with Viewer permissions. Check the source-side audit principal for each user first. If the two principals are identical, the queries are not running under separate identities, whatever the gateway setting shows.
Can I use Test as role to validate SSO for a DirectQuery model?
No. Microsoft documents that Test as role does not work for DirectQuery semantic models with single sign-on enabled, and directs you to sign in as an actual Viewer-role user instead (RLS with Power BI, last updated May 13, 2026). That is why the procedure above uses two real accounts and compares source-side audit records. Role simulation remains useful for model-defined RLS over imported data, but it cannot confirm that an identity propagates to the source.
Does SSO replace row-level security defined in the semantic model?
No, they are separate enforcement points. With DirectQuery, the data source applies its own security rules to the credentials it receives, while imported data relies on row-level security defined in the semantic model (DirectQuery in Power BI). SSO changes which identity reaches the source; it does not remove the need to define and test model-level RLS where your design depends on it.
Which identity does a scheduled refresh use under SSO?
A refresh configured for SSO runs under the identity of the dataset owner within Power BI, not the identity of the user who triggered it, and refresh using SSO is currently enabled only for data sources using Kerberos constrained delegation. Test that path separately: a passing interactive test tells you nothing about the principal a scheduled refresh used.