Issue connecting to Outlook

Describe the problem/error/question

Getting the error below when trying to connect to Outlook, even though the exact same Outlook connection worked a few weeks ago. n8n.cloud is already registered in Microsoft Entra. Permissions were already added in Microsoft Entra: Contacts.Read, Mail.ReadWrite, Mail.Send, Files.ReadWrite, etc.

What is the error message (if any)?

“Need admin approval”

“n8n cloud needs permission to access resources in your organization that only an admin can grant.”

Please share your workflow


Share the output returned by the last node

Information on your n8n setup

  • n8n version: 2.6.4
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): cloud
  • Operating system: Windows 11 Business

Hi @vabele Welcome!
I Guess the problem is that you have not refreshed your credentials after you have gained Admin access , please consider refreshing your credentials and let us know if the issue persists.

Hi @vabele, welcome to the n8n community :sparkles:
Was this the only change that could justify an impact on the flow?

Thank you for the very quick reply!!!

How do I refresh credentials?

Thank you!!! Actually, I didn’t change anything, just didn’t login for a while during the Holidays. Now it’s not connecting anymore.

@vabele In your credentials area if you can ‘sign up’ again or just reenter your API-Keys, Auth-Token..etc, Just re enter them and check the connection and then try again.

Okay, but were you an admin before? Have you tried logging out and logging back in?

Revoking your credentials would make this work. Just visit the API area of OutLook and delete existing token and then create another fresh one and everything would work just fine @vabele.

I have deleted the account and created an new credential … same error message. Is there another Entra setting I’m missing?

I wasn’t … but it worked before without being one. It’s been a few weeks (since mid-December) … I was off. I have now created a new credential and I’m getting the same error.

@vabele In your the Microsoft Outlook node credential in n8n Cloud click Edit → Reconnect / Refresh OAuth2 complete the Microsoft login with your admin account and save because you are already the tenant admin and n8n.cloud is registered with the right API permissions, simply re‑authorizing the credential updates the stored consent and stops the “Need admin approval” error without any further Entra configuration changes.

I did, but getting same error. I even created a new credential.

@vabele Since you’re already admin and n8n.cloud is registered correctly, ask your tenant’s Global Admin to open the “n8n cloud” enterprise app in Entra → API permissions → click “Grant admin consent for tenant”, then re‑connect the Outlook credential in n8n using that same admin account this will be the last thing we should be checking in credentials, let me know if this works or not.

1 Like

@vabele
Anshul brought the solutions, I’m describing why.
I researched this and found that the “Need admin approval” error happens because, even though the n8n.cloud app is already registered in Microsoft Entra and has the correct permissions like Mail.ReadWrite and Mail.Send, admin consent has not been granted for the entire tenant. Azure will block the application until a Global Admin clicks “Grant admin consent for tenant” in the app permissions within Entra ID. Without this admin consent, OAuth2 authentication will keep failing with the approval required message, even after recreating credentials or reconnecting in n8n.

2 Likes

Really appreciate the details! The “Grant admin consent for tenant” in the app permissions within Entra ID was already done - the global admin even shared the screen with me. What else can I try in Entra? It was working well a few weeks ago and no change was performed (unless Microsoft changed some defaults in Entra …)

@vabele if that is the case i recommend flagging this as you have already reviewed global permissions and global admin have already checked your cloud instance, reaching out the support team at [email protected] might bring some more clarity.

Will do. Thank you again for all the help and very quick responses!

1 Like

Happy to help :blush:

Hi! Exactly the same situation here, trying to connect an Outlook node via
Microsoft Outlook OAuth2 API, followed the steps from both n8n docs

and the Microsoft docs regarding the granting of admin consent:

Even remade the app with multi-tenant and allowing all tenants, so I will also send an email detailing the error.

Need admin approval

n8n_poc

unverified

n8n_poc needs permission to access resources in your organization that only an admin can grant. Please ask an admin to grant permission to this app before you can use it.

Hi @vabele !

I want to inform you that I finally managed to have access and connect the node. Inspect the connection, in the browser (dev tools - network), and you will see the real scope parameters. Mine had a looooooot missing, as my node and application api permissions were built only with reading emails in mind.

So, if anything, at least for me, after adding in the API permissions all the ones that are mentioned in the scope, I was able to connect. (dont forget that after adding the API permissions in Microsoft Entra to ask again your admin to Grant Admin Consent).

openid
offline_access
Contacts.Read
Contacts.ReadWrite
Calendars.Read
Calendars.Read.Shared
Calendars.ReadWrite
Mail.ReadWrite
Mail.ReadWrite.Shared
Mail.Send
Mail.Send.Shared
MailboxSettings.Read