Hi @Dusan Jevtic
Have you created the application access policy correctly? According to the documentation, it should support the Mail.Send
application permission.
Note that you need to add the target user as a member of a mail-enabled security group. The administrators can then limit application access to only that set of mailboxes by creating an application access policy for access to that group.
New-ApplicationAccessPolicy -AppId xxxxxxxxxxx -PolicyScopeGroupId xxxxxxxxxxx -AccessRight RestrictAccess -Description "xxxxxxxxxxxxxxx."
Finally, you can test whether the application has access to the user by running the Test-ApplicationAccessPolicy
command.
Test-ApplicationAccessPolicy -Identity xxxxxxxxxxxx -AppId xxxxxxxxxxxxxxxxxxxxxxxx
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.