SharePoint OAuth in n8n Cloud fails with AADSTS50011 (redirect URI mismatch)

Hi everyone,
I’m on n8n Cloud and trying to connect SharePoint using the built-in credential “Microsoft SharePoint OAuth2 API” (the one that only asks for the SharePoint subdomain and has a Connect my account button).

When I click Connect my account, Microsoft login fails with:
AADSTS50011: The redirect URI … does not match the redirect URIs configured for the application (redirect URI mismatch).

Hey @Luis_Fernando_Torres, try updating the n8n version to 2.1.4 or later. This solved some similar issues. Buena suerte!!