When using current user e-mail functionality in Business Central On-Prem, error 'Access denied. Check Credentials and try again.' pops up.

Nick Dekker 1 Reputation point
2021-12-03T09:08:35.027+00:00
  1. App registration in Azure Portal. https://learn.microsoft.com/en-us/dynamics365/business-central/admin-how-setup-email
  2. Given the right permission and have got the right client-id and client secret since the authentication has been verified.
    154708-image.png
    1. However, when sending out a e-mail by user an error pops up that the 'Access is denied. Check credentials and try again.'

Below the given permissions:
Dynamics 365 Business Central (1)
API.ReadWrite.All Application Full access to web services API

Microsoft Graph (5)
User.Read Delegated Sign in and read user profile
User.Read Delegated Sign in and read user profile.
Mail.ReadWrite Delegated Compose email messages.
Mail.Send Delegated Send email messages.
offline_access Delegated Maintain data access consent.

  1. Grant consent has been given to all permissions in which it was required.

Please help me out!

Microsoft Entra
{count} votes

3 answers

Sort by: Most helpful
  1. Marilee Turscak-MSFT 33,056 Reputation points Microsoft Employee
    2021-12-17T00:12:40.237+00:00

    Have you added the user group memberships to ensure that all of the permissions are applied?

    158374-image.png

    For further troubleshooting, I would recommend reaching out on the Dynamics forum. Based on similar cases that I'm seeing in their forums, this can happen if your IP or email is blocked, and in that case it is recommended that you resolve this through a support case.

    https://community.dynamics.com/business/f/dynamics-365-business-central-forum/270062/dynamics-365-online---550-5-7-501-access-denied-spam-abuse-detected---sending-email-from-workflow---server-side

    https://answers.microsoft.com/en-us/msoffice/forum/all/can-not-send-email-from-business-central/467bc051-4a5b-483c-ae98-7c2cc290f9d0

    0 comments No comments

  2. Alessandro Pillon 1 Reputation point
    2022-04-11T13:36:08.66+00:00

    Hello,

    Did you find out the problem? I'm having the same issue.

    Regards,

    Alessandro

    0 comments No comments

  3. Wahida Akhter 0 Reputation points
    2023-05-11T21:34:25.18+00:00

    Hi There,

    In addition, users manage mailboxes permissions such as Send as, send on behalf, and read and manage access needs to add from Exchange Admin Center