# Power BI Configuration Example

## Specify authentication method

When creating a data source in Power BI, specify **Microsoft Account** as the authentication method, if available. This setting allows you to use your enterprise SSO to connect to your compute platform.

## Set up DirectQuery

After connecting to the compute platform and the tables to use for your data source, select **DirectQuery** to connect to the data source. This setting is required for Immuta to enforce policies.

## Publish data

After you publish the datasets to the Power BI service, force users to use their personal credentials to connect to the compute platform by following the steps below.

1. Enable SSO in the tenant admin portal under **Settings -> Admin portal -> Integration settings**.
2. Find the option to manage **Data source credentials** under **Settings -> Datasets**.
3. For most connectors you can enable **OAuth2** as the authentication method to the compute platform.
4. Enable the option **Report viewers can only access this data source with their own Power BI identities using DirectQuery**. This forces end-users to use their personal credentials.

## Resources

* Snowflake guides:
  * <https://www.snowflake.com/blog/using-sso-between-power-bi-and-snowflake>
  * <https://docs.snowflake.com/en/user-guide/oauth-powerbi>
* Databricks guide: <https://learn.microsoft.com/en-us/azure/databricks/partners/bi/power-bi#access-azure-databricks-data-source-using-the-power-bi-service>
* Redshift guide: <https://aws.amazon.com/blogs/big-data/integrate-amazon-redshift-native-idp-federation-with-microsoft-azure-ad-and-power-bi>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.immuta.com/saas/configuration/application-configuration/how-to-guides/bi-tools/power-bi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
