Power BI node OAuth authentication fails with “Unable to proceed without access token

Describe the problem/error/question

I’m facing an issue with the Power BI node in n8n while trying to connect my Microsoft Power BI account.
The authentication flow does not complete successfully, and the node fails due to a missing access token.

What is the error message (if any)?

Problem in node:
PartialExecutionToolExecutor

Error:

Error executing tool: Unable to proceed without access token

Screenshot for reference:
https://prnt.sc/Jj_rrQVNPNsq

During the OAuth callback, n8n also receives the following error from Microsoft:

{
  "error": "access_denied",
  "error_subcode": "cancel",
  "error_description": "AADSTS65004: User declined to consent to access the app."
}

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

The issue occurs during credential authentication, before any workflow execution.
No workflow nodes are executed beyond attempting to connect the Power BI credentials.
Not applicable, the error occurs during the Power BI credential connection step, before node execution.

Information on your n8n setup

  • n8n version: 2.6.3
  • **Database (default: SQLite):**Default
  • **n8n EXECUTIONS_PROCESS setting (default: own, main):**Default
  • **Running n8n via (Docker, npm, n8n cloud, desktop app):**n8n Cloud
  • Operating system:

Welcome to the community @Gyan

When you try to connect Power BI credentials in n8n, Microsoft’s OAuth flow opens a consent screen asking for permissions. The error AADSTS65004: User declined to consent to access the appcould mean the consent was either:

  • declined by clicking “No” or “Cancel”

  • The popup was closed before completing

  • Blocked by your browser settings

WHAT TO DO:

  1. Try and Re-authenticate your Power BI credential and carefully accept all permissions

  2. Watch for these common issues:

    • Pop-up blockers - Make sure your browser allows popups from n8n Cloud

    • Closing the window too early - Wait for the full consent screen to load

    • Multiple Microsoft accounts - Ensure you’re signing in with the correct account that has Power BI access

  3. If you’re using a work/organizational account:

    • Your organization may require admin consent for third-party apps

    • Contact your IT administrator to pre-approve the n8n application in Azure AD

    • They may need to grant tenant-wide consent for Power BI API permissions

  4. Next Steps:

    1. Delete the existing failed Power BI credential

    2. Create a new Power BI OAuth2 credential

    3. When the Microsoft consent screen appears, click “Accept” or “Yes”

    4. Complete the authentication flow without closing the window

    Let me know if this helps!

Hi @Gyan Welcome!
You must redo the Power BI OAuth credential and completely fill out the Microsoft consent screen (accepting all permissions and disabling popup blockers) so that n8n will receive an access token and not access_denied.

Hi @Gyan

Welcome to the n8n community :tada:

Based on the Microsoft logs showing access_denied with User declined to consent, the issue is clear: the consent wasn’t completed. Without it, Microsoft won’t issue an access token and n8n can’t proceed.

Here's what you need to do

When you click Connect my account in n8n Cloud, a Microsoft consent screen will appear. You must click Accept on that screen. If you see “Need admin approval” or similar, your tenant requires admin consent. In that case, contact your Microsoft 365 or Azure admin to either grant admin consent for the app or enable user consent in tenant settings.
If you’re using your own Azure app registration for Power BI instead of n8n’s managed credentials, verify the Redirect URI is set to https://YOUR-PROJECT.app.n8n.cloud/rest/oauth2-credential/callback

the credential will only work once consent is accepted on the Microsoft side. Retry the connection and make sure to complete the consent flow without canceling or closing the window.