I wanted to confirm if in this new update of Business Central, is there a bug in the Email Account Setup Wizard? When I create a new Email Account using SMTP with OAuth 2.0, and then keep the "Use custom app registration" as disabled, then also it throws me this error - "Client Id and Client Secret must be provided before authentication."
And when I choose the Custom App thing, then it now requires Global Admin consent just like we do it while registering Entra App for APIs. This makes the process even worse that everytime I am adding an email account in SMTP, I can't add it without the Global Admin consent.
This is not a bug: in recent Business Central versions, SMTP with OAuth 2.0 always requires an Entra ID app registration. When Use custom app registration is OFF, BC still expects a client ID/secret, but Microsoft no longer provides a built-in OAuth app for SMTP, so the wizard throws that error. When you enable custom app registration, Global Admin consent is mandatory because SMTP OAuth needs Exchange permissions that regular users can’t grant. There’s no workaround for this. If you want to avoid Global Admin involvement and this complexity, don’t use SMTP at all—use Email Account Type = Microsoft 365, which handles OAuth internally and is the recommended approach going forward.
Regards,
Oussama Sabbouh
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.