I want to use exchange scope with using Office 365 settings (app id, tenant id). I’ve created app registration on azure and granted permissions for graph api and office 365 exchange online.
When we use UsernameAndPassword authentication type, we got an error below;
“AADSTS65001: The user or administrator has not consented to use the application with ID ‘********’ named ‘**********’. Send an interactive authorization request for this user and resource.”
Authentication type should be Interactive Token if you want to use App and Tenant Id, so chnage the authentication type for using user name and password.
If you want to use UserName and Password - Then you can select the authentication type as same and put values in username and password properties, however you would still have to provide application and tenant.
Please find more details here: