Power BI: connect a work or school Microsoft account to read reports, query semantic models and run refreshes
Power BI asks for the delegated Power BI permissions Workspace.Read.All, Report.ReadWrite.All, Dashboard.ReadWrite.All, Dataset.ReadWrite.All, Content.Create and App.Read.All — and nothing from Microsoft Graph (a Microsoft token covers one service, so SharePoint is its own connection). None of them needs an administrator by itself. The agent has 35 tools (17 reads, 18 changes).
What you need
- A work or school Microsoft account with Power BI. A free licence reaches My workspace; shared workspaces need Power BI Pro or Premium Per User.
- For DAX queries: your Power BI administrator turns on the tenant setting "Dataset Execute Queries REST API", and you have Read and Build permission on the semantic model.
- For exports: the report's workspace runs on a Premium, Embedded or Fabric capacity (Premium Per User is not enough); PNG export is off until the tenant turns it on.
- For refreshes: on shared capacity Power BI allows 8 refreshes a day per semantic model, scheduled ones included; enhanced refresh options need a Premium or Fabric capacity.
Connect step by step
- 1Open Integrations → Power BI → Connect.
- 2Sign in with your work or school Microsoft account and accept the permissions.
- 3Your workspaces appear on the card. A colleague who connects the same shared workspace adds a second sign-in to the same connection; each person's My workspace stays their own.
Bring your own data in, and build a report by API
- Bring data in: create a push semantic model (tables, typed columns, DAX measures) in the connected workspace — My workspace included — and add rows (Power BI takes 10,000 per request and 1,000,000 an hour per model).
- Build a report by API: a new report on a semantic model, with one page of cards, line / bar / column charts and tables, created through Microsoft Fabric's Create Report with the same Power BI sign-in.
- Reload safely: a push model has no data source and no scheduled refresh; replacing its rows (delete all rows, then add) and changing a table's schema wait for a person.
Tools
| Tool | Kind | What it does |
|---|---|---|
| powerbi.list_workspaces | Read | The Power BI workspaces connected in this workspace (one per row, My workspace included), or — live:true — every workspace the signed-in user can see now (marks those not connected yet). |
| powerbi.list_reports | Read | The workspace's reports (id, name, web URL, semantic model id, report type — PowerBIReport or PaginatedReport). |
| powerbi.get_report | Read | One report (name, web URL, semantic model, type, endorsement). |
| powerbi.list_report_pages | Read | A report's pages (name = the page id used by exports, display name, order). |
| powerbi.list_dashboards | Read | The workspace's dashboards (id, name, web URL, read-only). |
| powerbi.get_dashboard | Read | One dashboard. |
| powerbi.list_dashboard_tiles | Read | A dashboard's tiles (title, report / semantic model they come from, size). |
| powerbi.list_datasets | Read | The workspace's semantic models (datasets): id, name, refreshable, configured by (masked), whether it is on a capacity, storage mode. |
| powerbi.get_dataset | Read | One semantic model with its refresh settings. |
| powerbi.list_datasources | Read | A semantic model's data sources (type, server / database / URL; no credentials). |
| powerbi.list_refreshes | Read | A semantic model's refresh history (status, start / end, type, error). Needs Write permission on the model. |
| powerbi.get_refresh_schedule | Read | A semantic model's scheduled refresh (enabled, days, times, time zone, failure e-mails). |
| powerbi.execute_query | Read | Run ONE DAX query (it must start with EVALUATE or DEFINE) against a semantic model and return the rows (capped at maxRows, default 1,000, ≤ 10,000; Power BI itself stops at 100,000 rows / 1,000,000 values / 15 MB, 120 queries a minute per user). Needs the tenant setting "Dataset Execute Queries REST API" and the user's Read + Build permission. MDX and DMV queries are not supported (DAX INFO.VIEW functions are); read the columns and measures with list_tables first. |
| powerbi.get_export | Read | The status of a create_report_export job; when it has succeeded the file is saved to the Asset Library and its link returned. |
| powerbi.list_apps | Read | The Power BI apps the signed-in user has installed (id, name, publisher). |
| powerbi.list_tables | Read | A semantic model's tables with their COLUMNS (min / max / distinct values) and MEASURES — read this before writing DAX for execute_query. |
| powerbi.get | Read | Any Power BI REST READ under the connected workspace that no typed tool covers: path relative to /v1.0/myorg starting with groups/{this workspace id}/… (or, for My workspace, reports/, dashboards/, datasets/ of items that are in My workspace). |
| powerbi.refresh_dataset | Change (approval) | Start a refresh of a semantic model (on shared capacity Power BI allows 8 a day per model, scheduled ones included; enhanced refresh options — type, commitMode, objects, maxParallelism, retryCount, applyRefreshPolicy — need a Premium / Fabric capacity). |
| powerbi.update_refresh_schedule | Change (approval) | Change a semantic model's scheduled refresh (the user must own the model). Turning it off must be the only change. |
| powerbi.clone_report | Change (approval) | Copy a report under a new name, in this workspace or another CONNECTED workspace, optionally bound to another semantic model (Build permission on it). |
| powerbi.rebind_report | Change (approval) | Point a report at another semantic model in the same workspace (the model must have a compatible schema; paginated reports are not supported). |
| powerbi.create_report_export | Change (approval) | Export a report to PDF, PPTX or PNG (PNG must be turned on by the tenant). Needs the workspace on a Premium, Embedded or Fabric capacity — not Premium Per User. Waits up to 40 s; when the file is ready it is saved to the Asset Library, else get_export continues. |
| powerbi.create_dashboard | Change (approval) | Create an empty dashboard in the workspace. |
| powerbi.update_report_content | Change (approval) | REPLACE a report's content with another report's (the source report in this workspace). A person approves it on every lane. |
| powerbi.delete_report | Change (approval) | Delete a report (Power BI has no recycle bin for it). A person approves it on every lane. |
| powerbi.delete_dashboard | Change (approval) | Delete a dashboard. A person approves it on every lane. |
| powerbi.delete_dataset | Change (approval) | Delete a semantic model AND every report built on it. A person approves it on every lane. |
| powerbi.take_over_dataset | Change (approval) | Make the signed-in user the semantic model's owner (its data-source credentials and refresh then run as that user). A person approves it on every lane. |
| powerbi.update_datasources | Change (approval) | Repoint a semantic model's data sources (same schema; SQL Server, Azure SQL, Analysis Services, Synapse, OData, SharePoint, Teradata, SAP HANA only; the user must own the model). A person approves it on every lane. |
| powerbi.create_push_dataset | Change (approval) | Create a PUSH semantic model in the connected workspace (My workspace included) from a schema: tables (≤ 75, names letters / digits / _), columns (≤ 75 each; Int64, Double, Decimal, Boolean, DateTime, String; optional formatString), DAX measures and relationships. It holds the rows add_rows sends; it has no data source and no scheduled refresh. A push model of the same name in the workspace is returned instead of a second one (allowDuplicateName:true makes another). |
| powerbi.add_rows | Change (approval) | Add rows to a table of a PUSH semantic model: ≤ 100,000 rows per call, sent as 10,000-row requests (Power BI: 1,000,000 rows an hour, 4,000 characters per text value). A failure part-way says how many rows went in — send only the rest. Dates as ISO text. |
| powerbi.delete_rows | Change (approval) | Delete EVERY row of a push model's table (Power BI has no per-row delete). A person approves it on every lane. |
| powerbi.update_table_schema | Change (approval) | REPLACE a push model table's columns and measures (columns left out are dropped). A person approves it on every lane. |
| powerbi.create_report | Change (approval) | Create a report on a semantic model of the connected workspace (Microsoft Fabric Items — Create Report; works in My workspace with a Pro licence): with visuals, one page laid out on a grid — card (measure), line / bar / column (category column + 1–5 measures), table (columns + measures), ≤ 12; without, an EMPTY report to finish in Power BI. Field names are the model's own; say which are measures. A report of the same name on the same model is returned instead of a second one. |
| powerbi.mutate | Change (approval) | Any Power BI REST WRITE under the connected workspace that no typed tool covers: { accountId, method: POST | PATCH | DELETE, path (relative to /v1.0/myorg, under groups/{this workspace}/ or a My workspace item), body? }. A refresh, a refresh schedule, a clone, a rebind, an export or a new dashboard is ordinary; everything else waits for a PERSON; permissions (users), embed tokens, capacity / gateway / admin calls and deleting the workspace are refused. |
What waits for a person
- Under your approval setting: refreshes, refresh schedules, report copies and rebinds, exports, new dashboards.
- Always a person's decision: Deleting a report, a dashboard or a semantic model, replacing a report's content, taking over a semantic model and changing its data sources always wait for a person, on every lane — even with auto-approve on.
- Never: sharing and permission changes, embed tokens, admin, capacity and gateway calls, imports, and creating or deleting a workspace.
- Every call stays in the connected workspace: a report, semantic model or dashboard from another workspace is refused before anything is sent.
- Your data in DAX results: a DAX query on a saved dashboard is refreshed on its schedule like a BigQuery query; only e-mail addresses are masked, so query aggregates rather than customer rows, and the agent's memory never keeps DAX rows.
Power BI and Microsoft Fabric
Power BI's REST API (api.powerbi.com) covers reports, dashboards, semantic models, refreshes and exports — that is what this connection uses. Microsoft Fabric is the platform around it (lakehouses, notebooks, Real-Time Intelligence, data agents …), reached through the separate Fabric REST API with item-type permissions. The Fabric permissions an app registration lists under "Power BI Service" are not used here.
Permissions you can remove from the app registration
For administrators tidying the app registration in Microsoft Entra: these Power BI Service permissions are retired, belong to Fabric items, or are broader than the tools need. The connect never asks for them.
| Permission | Kind | Note |
|---|---|---|
| Scorecard.Execute.All | Retired | Shown as retired in Entra (Power BI goals / scorecards permission). Remove it. |
| Scorecard.ReadWrite.All | Retired | Shown as retired in Entra. Remove it. |
| MetricSet.ReadWrite.All | Retired | Metric sets were retired (phased from 2025-10-25, fully 2025-11-15). Remove it. |
| DataAgent.Execute.All | Microsoft Fabric item | Microsoft Fabric data agent item. |
| DataAgent.ReadWrite.All | Microsoft Fabric item | Microsoft Fabric data agent item. |
| Datamart.ReadWrite.All | Microsoft Fabric item | Fabric / Power BI datamart item. |
| GraphQL.Execute.All | Microsoft Fabric item | Fabric API for GraphQL item. |
| KQLDashboard.ReadWrite.All | Microsoft Fabric item | Fabric Real-Time Intelligence dashboard. |
| MLModel.ReadWrite.All | Microsoft Fabric item | Fabric Data Science ML model item. |
| OrgApp.ReadWrite.All | Microsoft Fabric item | Fabric org app item. |
| SemanticModel.ReadWrite.All | Microsoft Fabric item | Fabric item-CRUD scope for semantic models (the Power BI REST calls here use Dataset.ReadWrite.All). |
| PaginatedReport.ReadWrite.All | Microsoft Fabric item | Fabric item-CRUD scope for paginated reports. |
| SQLDatabase.ReadWrite.All | Microsoft Fabric item | Fabric SQL database item. |
| UserDataFunction.ReadWrite.All | Microsoft Fabric item | Fabric user data function item. |
| VariableLibrary.ReadWrite.All | Microsoft Fabric item | Fabric variable library item. |
| Workspace.GitCommit.All | Microsoft Fabric item | Fabric Git integration. |
| Workspace.GitUpdate.All | Microsoft Fabric item | Fabric Git integration. |
| Connection.ReadWrite.All | Microsoft Fabric item | Fabric connections / gateways data sources. |
| Dataflow.Execute.All | Not used | Dataflows are not built. |
| Dataflow.ReadWrite.All | Not used | Dataflows are not built. |
| Pipeline.Deploy | Not used | Deployment pipelines are not built. |
| Pipeline.ReadWrite.All | Not used | Deployment pipelines are not built. |
| StorageAccount.ReadWrite.All | Not used | Dataflow storage accounts — not built. |
| Capacity.ReadWrite.All | Not used | Capacity assignment is never done by the agent. |
| Workspace.ReadWrite.All | Not used | Broader than needed; the connect asks Workspace.Read.All. |
| Tenant.Read.All | Admin only | Admin APIs — admin consent required; never asked. |
Frequently asked questions
- Why does a DAX query fail with "not allowed"?
- The tenant setting "Dataset Execute Queries REST API" is off, or you lack Build permission on the semantic model. Power BI also stops a query at 100,000 rows, 1,000,000 values or 15 MB, and at 120 queries a minute per user.
- Why can the agent not export my report?
- Export needs the workspace on a Premium, Embedded or Fabric capacity; Premium Per User and shared capacity cannot export.
- Do I need an administrator?
- Only if your tenant's consent policy requires one. The permissions themselves do not need administrator consent; the Power BI card links the administrator approval page when Microsoft asks for it.