> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up Power BI in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/microsoft-power-bi
Last updated: 2026-11-24

Share Power BI with your team in Claude, ChatGPT and Cursor through Metorial: OAuth sign-in, 21 tools (9 read-only).

---

To give your team Power BI in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Power BI integration in a Metorial portal, and each person signs in to Power BI with their own account. Agents can manage Power BI workspaces, datasets, reports, dashboards, and dataflows. The integration has 21 tools, 9 read-only, 11 write and 1 destructive, plus 2 triggers.

**What you will learn**

- How an admin shares Power BI in a portal and how each person connects
- The 21 OAuth scopes Power BI can request, and what each one allows
- How to keep the 9 read-only tools and reject the other 12

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- An account with Power BI for each person who connects
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/cli), signed in to your portal

## Sign-in method

| Method | Type | What a person provides |
| --- | --- | --- |
| **Microsoft OAuth** | OAuth | Signs in to Power BI |

### Microsoft OAuth

People sign in to Power BI and approve the scopes you allow. The integration can request:

| Scope | Name | What it allows |
| --- | --- | --- |
| `https://analysis.windows.net/powerbi/api/Dataset.ReadWrite.All` | Datasets Read/Write | Read and write all datasets |
| `https://analysis.windows.net/powerbi/api/Dataset.Read.All` | Datasets Read | Read all datasets |
| `https://analysis.windows.net/powerbi/api/Dashboard.Read.All` | Dashboards Read | Read all dashboards |
| `https://analysis.windows.net/powerbi/api/App.Read.All` | Apps Read | Read all installed apps |
| `https://analysis.windows.net/powerbi/api/Report.Read.All` | Reports Read | Read all reports |
| `https://analysis.windows.net/powerbi/api/Report.ReadWrite.All` | Reports Read/Write | Read and write all reports |
| `https://analysis.windows.net/powerbi/api/Dataflow.Read.All` | Dataflows Read | Read all dataflows |
| `https://analysis.windows.net/powerbi/api/Dataflow.ReadWrite.All` | Dataflows Read/Write | Read and write all dataflows |
| `https://analysis.windows.net/powerbi/api/Group.Read` | Groups Read | Read user groups |
| `https://analysis.windows.net/powerbi/api/Group.Read.All` | Groups Read All | Read all groups |
| `https://analysis.windows.net/powerbi/api/Content.Create` | Content Create | Create content in Power BI |
| `https://analysis.windows.net/powerbi/api/Capacity.Read.All` | Capacities Read | Read all capacities |
| `https://analysis.windows.net/powerbi/api/Capacity.ReadWrite.All` | Capacities Read/Write | Read and write all capacities |
| `https://analysis.windows.net/powerbi/api/Pipeline.Read.All` | Pipelines Read | Read all deployment pipelines |
| `https://analysis.windows.net/powerbi/api/Pipeline.ReadWrite.All` | Pipelines Read/Write | Read and write all deployment pipelines |
| `https://analysis.windows.net/powerbi/api/Pipeline.Deploy` | Pipelines Deploy | Deploy content with deployment pipelines |
| `https://analysis.windows.net/powerbi/api/Metadata.View_Any` | Metadata View | View metadata for any item |
| `https://analysis.windows.net/powerbi/api/Data.Alter_Any` | Data Alter | Alter any data |
| `https://analysis.windows.net/powerbi/api/Workspace.Read.All` | Workspaces Read | Read all workspaces |
| `https://analysis.windows.net/powerbi/api/Workspace.ReadWrite.All` | Workspaces Read/Write | Read and write all workspaces |
| `offline_access` | Offline Access | Maintain access with refresh tokens |

### Setup settings

Setup also asks for:

- `tenantId`: Azure AD (Microsoft Entra ID) Tenant ID. Found in Azure portal under App registrations.

## Use your own Power BI OAuth app

With your own OAuth app, people see your company's name on the Power BI consent screen, and the client ID and secret belong to you.

1. **Start the credentials in Metorial**

   In the dashboard, select **Settings**, then **Organization Settings**. Under **Integrations and MCP**, select **Provider Auth**, then **Create Auth Credentials**. Choose Power BI and copy the **Redirect URI**.

2. **Register the app with Power BI**

   Create an OAuth app or client in Power BI and add the redirect URI from Metorial as its redirect or callback URL. The vendor documents this in [OAuth documentation](https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-auth-code-flow).

3. **Finish in Metorial**

   Copy the app's client ID and client secret. Back in Metorial, enter a **Name**, the **Client ID** and the **Client Secret**, review **Scopes**, and select **Create**. Then pick these credentials for the Power BI integration.

## Admin: share Power BI in a portal

### In the dashboard

1. **Open Shared Resources**

   Open **Workforce**, choose the portal, and select **Shared Resources** under **Access**.

2. **Share a new integration**

   Select **Share a Resource**, then **New Integration**, and choose Power BI. For how members connect, choose **Each person connects**, so everyone signs in to Power BI as themselves.

3. **Limit the tools**

   Under **Tool Filters**, set the write and destructive groups to **Reject** if agents should only read from Power BI.

4. **Choose who gets it**

   Add the access groups that should see Power BI. When a person asks for access from the portal, the request appears under **Access Requests**.

### With the CLI

The CLI cannot create the per-user Power BI integration. Once it exists, check which groups have it:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search "power bi"
```

## Employee: connect Power BI

### In the portal

1. **Open Power BI in the catalog**

   Sign in to your portal and open Power BI. The status reads **Available**.

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. A Power BI sign-in tab opens. Sign in and approve the permissions listed.

3. **Confirm**

   The status changes to **Configured**. If it later reads **Needs reconnect**, select **Reconnect** and sign in again.

### With the CLI

```bash
metorial catalog search "power bi"
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. 

### Add it to your AI client

`metorial install` adds your Power BI connection to a local MCP client such as Claude Code, Cursor or Codex. `metorial list` prints the integration ID and `metorial client list` the client identifiers.

```bash
metorial list "power bi"
metorial client list
metorial install <client-identifier> <integration-id>
```

For a client that takes a server URL, such as ChatGPT, `metorial install custom <integration-id>` creates an installation token and shows the endpoint details.

## Make it read-only

Open the integration's **Tool Filters** and set the write and destructive groups to **Reject**. Agents keep the 9 read-only tools, such as `list_apps` and `get_dataset`, and lose the 11 write tools, such as `push_data` or `export_report`, and the destructive tool `manage_workspace`.

Employees see the result on the integration's page in the portal under **Tool access**. For the full walkthrough, see [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
metorial list "power bi"
metorial tools <integration-id>
metorial call <integration-id> list_apps -d '{}'
```

`metorial tools` lists the 21 tools, minus any you rejected. `list_apps` takes no input. It lists published Power BI apps accessible to the authenticated user.

To see every input a tool takes, run `metorial schema <integration-id> <tool-key>`.

## Tools

### Read-only tools (9)

- `list_apps`: List published Power BI apps accessible to the authenticated user.
- `list_gateways`: List on-premises data gateways and optionally include their data sources.
- `get_dataset`: Get detailed information about a Power BI dataset including its properties, data sources, parameters, tables, and refresh schedule. Needs `datasetId`.
- `list_capacities`: List available Power BI Premium and Embedded capacities.
- `list_reports`: List all Power BI reports.
- `list_dataflows`: List all Power BI dataflows in a workspace. Needs `workspaceId`.
- `list_workspaces`: List all Power BI workspaces (groups) accessible to the authenticated user.
- `list_dashboards`: List Power BI dashboards and optionally include tile details.
- `list_datasets`: List all Power BI datasets.

### Write tools (11)

- `update_dataset_parameters`: Update parameter values on a Power BI dataset. Needs `datasetId` and `parameters`.
- `generate_embed_token`: Generate an embed token for embedding Power BI reports or dashboards in custom applications. Needs `contentType` and `contentId`.
- `assign_workspace_capacity`: Assign or unassign a Power BI workspace to/from a Premium or Embedded capacity. Needs `action` and `workspaceId`.
- `execute_dax_query`: Execute a DAX (Data Analysis Expressions) query against a Power BI dataset and return the results. Needs `datasetId` and `query`.
- `push_data`: Push rows of data into a Power BI push dataset table or delete all rows from a table. Needs `action`, `datasetId` and `tableName`.
- `export_report`: Export a Power BI report to a file format (PDF, PPTX, PNG) or check the status of an ongoing export. Needs `action` and `reportId`.
- `manage_report`: Get report details, list pages, clone a report, rebind to a different dataset, or delete a report. Needs `action` and `reportId`.
- `refresh_dataset`: Trigger a dataset refresh or view refresh history. Needs `action` and `datasetId`.
- `refresh_dataflow`: Trigger a refresh for a Power BI dataflow. Needs `workspaceId` and `dataflowId`.
- `manage_workspace_users`: List, add, update, or remove users from a Power BI workspace. Needs `workspaceId` and `action`.
- `manage_pipeline`: List deployment pipelines, view pipeline stages and artifacts, deploy content between stages, or check deployment operation status. Needs `action`.

### Destructive tools (1)

- `manage_workspace`: Create or delete a Power BI workspace. Needs `action`.

## Triggers

Power BI has 2 triggers, which fire on events in Power BI:

- `dataset_refresh_completed`: Triggers when a dataset refresh completes (successfully or with failure).
- `inbound_webhook`

## Next steps

- [Claude Code](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use Power BI there
- [Create custom OAuth credentials](https://metorial.com/docs/platform/integrations/create-custom-oauth-credentials): the Provider Auth screens in more detail
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [Power BI on metorial.com](https://metorial.com/integrations/microsoft-power-bi): the integration overview