-
Hello, Having a web app, I would like to be able to send email on behalf of users. I've managed to write a script. Authorisation part passes successfully and I'm receiving the token. If I'm using the user_id as resource:
If I'm using email:
I've also tried to do same using official Postman collection. Using email as resource provides me same result. But with user_id I'm getting:
Also, I was able to list the users through API (I've took user Id from there). Asking of help. What can be the reason? UPDATE So, how to fix that problem? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I think it's because you need to set the permissions to "delegated" and not "application". can you triy this? |
Beta Was this translation helpful? Give feedback.
-
Finally. After about 1 week of struggling. Office 365 license (business type, bought and assigned by admin) helped. |
Beta Was this translation helpful? Give feedback.
Finally. After about 1 week of struggling. Office 365 license (business type, bought and assigned by admin) helped.
I've tried with @outlook.com user, bought private license, but not worked. Funny fact, Microsoft promised to give me 30d free, but charged first second.
Also tried Microsoft Entra ID P2 license. Which did not help as well.