Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Issue with Email Sending via Web Service – Graph API Authorization Error

(5) ShareShare
ReportReport
Posted on by 66

Hi,

We are trying to send emails via a web service call by using the standard "Enqueue" function from codeunit 8901 "Email", which enqueues emails to be sent in the background.

However, we are encountering the following error: "You are not authorized to access this resource: https://graph.microsoft.com/.default. Contact your system administrator."

Azure AD App Configuration: We have registered an application in Azure AD and granted all necessary permissions. 


Despite this configuration, we are still unable to send emails via the web service. Any advise what might be missing or misconfigured?

  • Suggested answer
    YUN ZHU Profile Picture
    82,664 Super User 2025 Season 1 on at
    Issue with Email Sending via Web Service – Graph API Authorization Error
    Hi, If you use standard functions to send emails, you do not need to set permissions in Azure.
    You just need to make sure that the Email Account has been set up in BC.
    For example,
     
     
    If you use the Graph API completely, you should send an HTTP request. Please confirm your approach first.
     
    Hope this helps.
    Thanks.
    ZHU
     
  • Gerardo Rentería García Profile Picture
    18,638 Most Valuable Professional on at
    Issue with Email Sending via Web Service – Graph API Authorization Error
  • Suggested answer
    Ramesh Kumar Profile Picture
    4,051 on at
    Issue with Email Sending via Web Service – Graph API Authorization Error

    Under API Permissions, ensure the following Application Permissions are granted (not just Delegated):

    • Mail.Send
    • User.Read
    • Optional: Mail.ReadWrite, MailboxSettings.Read
    Thanks you
    Ramesh Kumar
     
    If this was helpful, please check the "Does this answer your question?" box and mark it as verified.
  • Khushbu Rajvi. Profile Picture
    16,316 Super User 2025 Season 1 on at
  • Suggested answer
    KP - Solution Architect Technical Profile Picture
    305 on at
    Issue with Email Sending via Web Service – Graph API Authorization Error
    Hi,
     
    Can you check the extension management setup 
    If allowHttp Client is enabled.
     
    This can help you resolve.
     
     
     
    Thanks,
    KP

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.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
YUN ZHU Profile Picture

YUN ZHU 365 Super User 2025 Season 1

#2
Mansi Soni Profile Picture

Mansi Soni 242

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 226 Most Valuable Professional

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans