Hi @Katya Fedorova
In the context of delegation, you can only send mail on behalf of the logged-in user (/me
) and not other users. Before doing so, make sure you have obtained an access token using the delegated authentication flow (auth code flow or ROPC flow).
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.