# Power BI

> Power BI: what the collector reads, how to connect it, its permissions, its certification by Atlantic Agentic Labs and its security posture.

Needs onboarding Needs a partner agreement with the vendor, or a client's environment, before it can be built or certified.

Reads the inventory and refresh history of a Power BI tenant: workspaces, datasets and their data sources, reports, dashboards and the latest refreshes of each dataset. Analytics agents use it to say which report sits on which dataset, who owns it, and why a refresh failed. It never reads the data inside a dataset.

Built against the Power BI REST API v1.0 (`https://api.powerbi.com/v1.0/myorg`).

## At a glance

| Collector                   | Power BI, version `1.0.0`                                                                                                                                                      |
| --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Reads                       | Microsoft: Power BI REST API (workspaces, datasets, reports, dashboards, refresh history) ([the vendor's documentation](https://learn.microsoft.com/en-us/rest/api/power-bi/)) |
| Family                      | Observability                                                                                                                                                                  |
| Kind                        | Metrics                                                                                                                                                                        |
| Ways to connect             | OAuth approval                                                                                                                                                                 |
| Scopes                      | - Read: `Workspace.Read.All`, `Dataset.Read.All`, `Report.Read.All`, `Dashboard.Read.All`                                                                                      |
| Read only                   | Yes                                                                                                                                                                            |
| Vendor's API can move money | No                                                                                                                                                                             |
| Personal data               | Content, Identity                                                                                                                                                              |
| Hosts it may contact        | `api.powerbi.com`                                                                                                                                                              |
| Vendor API versions         | Power BI REST API v1.0 (myorg)                                                                                                                                                 |
| Lowest engine version       | `0.45.0`                                                                                                                                                                       |

## What it reads

- Workspaces (groups): name, capacity, storage format, read-only flag. All the workspaces the credential can see, or only those named in `workspaces`.
- Datasets: name, owner (`configuredBy`), whether it is refreshable and needs an on-premises gateway, and its data sources (type and connection details such as server and database; never credentials).
- Reports: name, type (Power BI or paginated), dataset, description and web address.
- Dashboards: name and read-only flag.
- Refresh history: for each refreshable dataset, its latest refreshes (ten by default, `refresh_history` sets 0 to 60) with start, end, status, type and the error code of a failed one.
- The endpoints have no “changed since” filter, so each run lists them whole and the cursor keeps a hash of every record per workspace: an unchanged record is not rewritten, and one that leaves its listing is withdrawn.
- Never read: the data in datasets (no DAX queries), report pages and visuals, dataflows, gateways, tenant audit logs and the admin APIs.

## How to connect

1. Register an application in Microsoft Entra and grant it the Power BI service permissions below, or use a service principal that the tenant’s admin has allowed to use the Power BI APIs and added to the workspaces to read. Add it to each workspace with the Viewer role at least; refresh history and data sources are shown only to callers with write access to the dataset, which Contributor provides.
2. In LightHouse, open **Connectors**, choose **Power BI**, optionally name the workspaces, pick a label and how often to read, and approve the sign-in.
3. In code, give the deployment an access token for `https://analysis.windows.net/powerbi/api` as `POWERBI_TOKEN` from your secret store and add a `kind: powerbi` source card with optionally `workspaces`, `label` and `requires`. `credential_env` changes the variable name. The token is short-lived; the deployment refreshes it before each run.

## Permissions

Read scopes only: `Workspace.Read.All`, `Dataset.Read.All`, `Report.Read.All` and `Dashboard.Read.All`. The collector sends only `GET` requests, to `api.powerbi.com` and no other host. Do not grant the `ReadWrite` variants: a token that could write is a token a leak turns into an outage. Its read-only test proves the collector’s side on every change.

## Limits

- The collector needs onboarding in the tenant first: an application registration, tenant settings that allow it to use the Power BI APIs, and workspace membership.
- “My workspace” (a user’s personal workspace) is not read; only workspaces listed by the groups endpoint are.
- Refresh history and data sources need write access to the dataset. A dataset where the call is refused keeps its earlier record and is never withdrawn for it.
- Refresh history of datasets stored in OneDrive is not returned by Power BI.
- Metadata of tables and columns is available from Power BI only for push datasets, and is not read.
- Workspaces are listed in pages of 200; each other listing arrives whole.
- Requests are paced and back off when Power BI asks (`Retry-After`).
- Not yet certified against a live tenant; see `CERTIFICATION.md`.

## Data handling

- Names, descriptions, dataset owners (an email address in `configuredBy`) and data source connection details are copied into the deployment’s corpus under the source’s `label`. They can name people and hold personal data.
- The access token stays in your secret store and is never written to logs or run notes; it is sent only to `api.powerbi.com`.
- Nothing leaves the deployment: only counts reach LightHouse.

## Troubleshooting

| What you see                                     | What it means                                                                           | What to do                                                         |
| ------------------------------------------------ | --------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
| `credential variable 'POWERBI_TOKEN' is not set` | The variable is empty (the name is shown, never a value)                                | Set it from your secret store                                      |
| `HTTP 401`                                       | The token has expired, or is for another audience                                       | Mint a new token for `https://analysis.windows.net/powerbi/api`    |
| `HTTP 403` on the workspace list                 | The tenant does not allow the application to use the Power BI APIs, or it lacks a scope | Ask the tenant admin to enable it; grant the read scopes           |
| Fewer workspaces than expected                   | The application is not a member of them                                                 | Add it to the workspaces                                           |
| A dataset has no refresh history                 | Its caller has no write access, or it is not refreshable                                | Give Contributor on the workspace; push datasets have no refreshes |
| `HTTP 429`                                       | Power BI is throttling                                                                  | Nothing; the collector waits and retries                           |

## Certification

Each entry is a run by Atlantic Agentic Labs, newest first. Only a run against the vendor’s sandbox or a client environment certifies a collector; a certification lasts six months, or less if the vendor publishes an API version the collector does not list. See [How collectors are certified](/collectors/certification/).

| Date             | Collector | Engine   | Vendor API                     | Method                              | Expires        |
| ---------------- | --------- | -------- | ------------------------------ | ----------------------------------- | -------------- |
| 20 November 2026 | `1.0.0`   | `0.45.0` | Power BI REST API v1.0 (myorg) | Fixtures only: built, not certified | Not applicable |

## Security posture

From the collector’s last scan on the default branch. What each line means, and what blocks a release: [Security posture](/collectors/security/).

| Last scanned               | 25 November 2026                                                                                                                                                                                                      |
| -------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Critical findings          | 0                                                                                                                                                                                                                     |
| High findings              | 0                                                                                                                                                                                                                     |
| Medium findings            | 0                                                                                                                                                                                                                     |
| Low findings               | 0                                                                                                                                                                                                                     |
| Info findings              | 0                                                                                                                                                                                                                     |
| Release blocked            | No                                                                                                                                                                                                                    |
| Network allow-list check   | Pass                                                                                                                                                                                                                  |
| Read-only behavioural test | Pass                                                                                                                                                                                                                  |
| SBOM (CycloneDX)           | Produced                                                                                                                                                                                                              |
| Dependency licences        | Pass                                                                                                                                                                                                                  |
| Scanners                   | bandit 1.9.4, semgrep 1.181.1, pip-audit 2.10.1, osv-scanner 2.7.0, cyclonedx-py 7.5.0, pip-licenses 5.5.5, gitleaks repository job aal-secrets, hosts_check tools/hosts_check.py, read-only test pytest -m read_only |

Source: https://docs.atlanticagenticlabs.com/collectors/catalogue/powerbi/
