Graph API - additional permissions needed to send email

Reuben Cohen 0 Reputation points
2023-11-02T15:19:09.7633333+00:00

I am attempting to send an email via the Graph API (application not delegated).

I was given an app id, client secret, and tenant id. The app has Mail.Send permissions.

I have been testing via the Microsoft Graph Postman collection https://learn.microsoft.com/en-us/graph/use-postman. I had to add a new request based upon https://graph.microsoft.com/v1.0/me/sendMail for the application. I used https://graph.microsoft.com/v1.0/users/<sender's email>/sendMail.

I am able to get a token without issue, but when I attempt to invoke the sendMail endpoint I get the message that Access to OData is disabled. The person who set up the application for me has also tried to send email using a different application and was getting the same error.

Obviously, this is a permissions issue, but I have no idea what other permissions would be needed to just get a token and send email as a user. Does anyone have any idea what additional permissions would be needed? If not, can you point me in the right direction to find out which ones are needed?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,021 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Andy David - MVP 147.9K Reputation points MVP
    2023-11-02T17:30:17.9333333+00:00

    Sure there isnt some app application policy applied to the mailbox?

    Scroll to the bottom to see how someone may have created one.

    https://stackoverflow.com/questions/69080522/send-mail-via-microsoft-graph-as-application-any-user


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.