Is there a way to automate the Auth of Microsoft 365 Outlook?


I need to use Outlook Node since IMAP doesnt work for this kind of security-pumped accounts.

Is there a way to automate this “Connect My Account” step? When the user needs to enter email/pass by hand and needs to click to button “allow” by hand?

Hey @onurbolaca,

I guess there will always be ways to automate filling out the field through things like puppeteer but there is no way in n8n to automate this. Part of OAuth is making sure that users authenticate and accept the connection, Some services do allow admin users to authorize and act as all other users but that then has another layer of complexity to it.

Hey @Jon ,

Puppeteer idea is crazy,

I have a self-hosted n8n,

Do you think a browser automation will be stable to use for years?

The only unstable thing would be the find out the login fields of microsoft I think right?

Hey @onurbolaca,

Browser automation can be tricky as it is always possible that Microsoft will update the page but we may also update n8n so you have multiple parts to worry about.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.