A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.
Hello SMSPGS,
Thank you for reaching out to Microsoft Support!
In response to your question, we tested it in postman, and it worked well, so here is our process for getting tokens:
1.Register multi-tenant application with account type as "Accounts in any organizational directory (Any Microsoft Entra ID tenant - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox)":
2.Make sure to enable public client option if you are using interactive flow for generating token:
3.Add the delegated permission Mail.Send and grant the administrator permission to:
4.Finally, do not use the /tenant-id endpoint to request the token when obtaining the token, as it only supports organizational logins, you should use the /common endpoint to log in to individual accounts.
GET https://login.microsoftonline.com/common/oauth2/v2.0/authorize
POST https://login.microsoftonline.com/common/oauth2/v2.0/token
Reference document:
https://learn.microsoft.com/en-us/graph/auth-v2-user?tabs=http
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.