Refresh and credentials
Separate refresh, identity and authorization
An Import model refresh reads data and updates stored model data; DirectQuery typically issues source queries at interaction time instead. Refresh scheduling is not a source permission. An interactive viewer, a connection owner, a refresh identity and a gateway service account may be different principals. Explicitly document which identity reaches which source.
Five checks along the request path
Check network reachability, authentication (who are you?), delegation (can a supported mechanism pass the identity?), source authorization (what may that identity read?), and semantic-model authorization (what may this consumer see?). A connection User grant can permit binding without giving the user the stored secret. For gateway SSO, connector and mode matter: Microsoft documents AD-based options for supported DirectQuery or refresh, and Entra SSO on the on-premises gateway for DirectQuery. Do not generalize this to every cloud or VNet connection. For Import, validate the actual refresh principal; an imported model is not automatically secured by the source permissions of each viewer. Configure source privacy levels in the actual execution environment; never set sources Public merely to make a mashup work.
Example 1 — identity matrix
In the lab, the approved refresh principal can read Sales, while ViewerNorth has model Read but no direct SQL grant. A stored-credential Import refresh may succeed; ViewerNorth can consume only permitted model data under model security. In the separate DirectQuery SSO case, ViewerNorth has valid identity but no source read privilege, so source access is denied. Granting model Read is not a fix. The simulator tests the stated policy, not actual RLS or delegation.
Example 2 — scheduling and freshness
A daily job is planned for 08:00 UTC. Source readiness is 07:55, actual start is 08:12, successful completion is 08:24, and source cutoff is 07:50. Queue delay is 12 minutes and processing is 12 minutes. At 08:30 the last loaded data is 40 minutes old; a 30-minute freshness objective is missed even though the job succeeded. A configured slot is not an exact execution promise. Set the schedule after upstream readiness, review history, and account for capacity and time zone. DirectQuery/live models generally do not rely on scheduled data import; other model operations may still need processing.
Credential lifecycle and limits
Maintain a connection owner and backup owner, review permissions and supported identity type, rotate credentials through approved controls, and test with least privilege. Do not store passwords or recovery keys in logs, examples, source code or tickets. Review schedule frequency and refresh duration limits for the actual license and capacity. Source command timeout, gateway connectivity timeout and service refresh limits are different boundaries; extending one does not remove the others. Microsoft documents schedule deactivation after four consecutive failures or certain unrecoverable configuration errors; fix the cause and review the schedule before enabling it again.
Practice and documentation
Use the synthetic timestamps to calculate freshness at 09:00. Explain why a successful refresh is insufficient evidence of current data, and why model Read alone cannot repair a source permission denial.
Documentation reviewed 2026-11-29; exact installed build and tenant settings unverified. Native execution NOT RUN.
- https://learn.microsoft.com/en-us/power-bi/connect-data/refresh-scheduled-refresh
- https://learn.microsoft.com/en-us/power-bi/connect-data/refresh-data
- https://learn.microsoft.com/en-us/power-bi/connect-data/service-gateway-sso-overview
- https://learn.microsoft.com/en-us/power-bi/desktop-privacy-levels
- https://learn.microsoft.com/en-us/power-bi/connect-data/service-connect-cloud-data-sources
- https://learn.microsoft.com/en-us/power-bi/connect-data/service-gateway-data-sources