I am having problems to send mails using Microsoft Graph.
I did the following:
I created an app of type : Multiple organizations
After that, I created a secret in my App.
Later, I added the following permissions:

This permissions was aproved by an admin.
I get a token using the following code:
var clientSecret = @"{My generated Secret in Azure}";
var clientId = @"{My Client Id}";
var tenantID = @"{My Tenant Id}";
IConfidentialClientApplication app= ConfidentialClientApplicationBuilder
.Create(clientId)
.WithTenantId(tenantID)
.WithClientSecret(clientSecret)
.Build();
result = await app.AcquireTokenForClient(scopes)
.ExecuteAsync();
With this token I did a call to the api https://graph.microsoft.com/v1.0/me/sendMail from postman to test the token,but postman is returning this error:
{
"error": {
"code": "ErrorAccessDenied",
"message": "Access is denied. Check credentials and try again."
}
}
IS there some additional configuration or miss configuration I am doing?
These are the values of the token:
