Hi ,
Yes, you can utilize the Microsoft Graph API with Application permissions to send mail on behalf of a user.
Please check : https://learn.microsoft.com/en-us/graph/auth-v2-user?%3Fwt.mc_id=MVP_328341&tabs=http
I hope you found this helpful.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Can I send mail on behalf of user using graph API with App only permissions?
I get this error.
{
"error": {
"code": "ErrorAccessDenied",
"message": "Access is denied. Check credentials and try again."
}
}
Hi ,
Yes, you can utilize the Microsoft Graph API with Application permissions to send mail on behalf of a user.
Please check : https://learn.microsoft.com/en-us/graph/auth-v2-user?%3Fwt.mc_id=MVP_328341&tabs=http
I hope you found this helpful.
Hi @Naga Dheeraj M
Yes, you can certainly use application permissions to send messages on behalf of other users.
First, you need to make sure you have granted the Mail.Send
application permission to the calling app and granted administrator consent for that permission. Next, you need to request an access token using the daemon-based client credentials flow and call the POST /users/{id}/sendMail
endpoint (note, not the POST /me/sendMail endpoint).
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.