client_id: a672d62c-fc7b-4e81-a576-e60dc46e951d) to retrieve data from CDF via user interaction.Scheduled data refreshes in the Power BI Service use the Power BI Data Refresh enterprise application (client_id: b52893c8-bc2e-47fc-918b-77022b299bbc).If your organization uses both interactive connections (Excel/Power BI Desktop) and scheduled refreshes (Power BI Service), you may need to grant admin consent for both applications separately.Before you start
- Register the Cognite API and the CDF application in Microsoft Entra ID.
- Set up Microsoft Entra ID and CDF groups to control access to CDF data.
Step 1: Identify the correct client IDs
Determine which applications require consent
-
For Excel and Power BI Desktop connections: Use the Microsoft Power Query for Excel client ID:
a672d62c-fc7b-4e81-a576-e60dc46e951d -
For Power BI Service scheduled data refreshes: Use the Power BI Data Refresh client ID:
b52893c8-bc2e-47fc-918b-77022b299bbc
Step 2: Grant admin consent via URL
Construct the consent URL
-
Replace
<tenant_id>with your organization’s Microsoft Entra ID tenant ID. -
Replace
<cluster>with the name of your CDF cluster, for instancewesteurope-1,az-eastus-1. -
Replace
<client_id>with the specific client ID identified in the previous step. This is either for Microsoft Power Query for Excel or for Power BI Data Refresh.
Open the URL as administrator
Review the requested permissions
<cluster>.cognitedata.com) and act on behalf of the signed-in user (user_impersonation and IDENTITY).Grant consent

login.microsoftonline.com/common/oauth2/nativeclient) after accepting. This is expected.Repeat for additional client IDs
Step 3: Test the connection (admin or test user)
When you’ve granted consent for the Microsoft Power Query for Excel client ID, test the connection using Excel or Power BI Desktop. The steps below use Excel as an example:Open Microsoft Excel
Open OData Feed connection

Enter the OData Feed URL
https://<cluster>.cognitedata.com/odata/v1/projects/<projectName>.If you need to sign in to Microsoft Entra ID as a guest user, you might also have to add the tenant ID as a query variable at the end of the URL, for example, oDataUrl?tenantID=MyEntraIDTenant.onmicrosoft.com.Read more about OData services.Sign in with organizational account

Connect to the data source
Step 4: Verify data access
In Navigator, you’ll see the CDF OData tables and data you have access to based on your CDF group memberships.
Test with a non-admin user
Test scheduled data refresh