Hello,
i have created an app registration and assigned the Mail.Send Aplication permission.
I acquire a token using the client credentials flow, the token correctly contains the Mail.Send (as any user) role.
When i call the sendmail api though, the /me endpoint responds with a 403, while the /users endpoint sends the email as expected.
How do i get the /me endpoint to work? I don't want to use the /users endpoint, the request should be executed as the service principal associated to the registration (object id).