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
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.
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:
Try and Re-authenticate your Power BI credential and carefully accept all permissions
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
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
Next Steps:
Delete the existing failed Power BI credential
Create a new Power BI OAuth2 credential
When the Microsoft consent screen appears, click “Accept” or “Yes”
Complete the authentication flow without closing the window
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.
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.