Hi Stefan,
Thank you for your response.
Our IT however, does not want to grant me application permissions.
The same concern as you, it can spoof all users.
This is what IT did on their side,
1. They have configured an app with delegated permissions
2. Created a user that can send email (IT said I can proceed to send email without authorization because it has permissions and they have disabled MFA for this user)
I was able to generate a token using client secret and ID, but whenever I send an email, I get this error:
HTTP/1.1 403 Forbidden
{
"error": {
"code": "ErrorAccessDenied",
"message": "Access is denied. Check credentials and try again."
}
}
How can I sign-in the user using just API without asking consent from user? Is this possible with an app with delegated permissions?