Forum Discussion

ShwetaDubey's avatar
ShwetaDubey
Copper Contributor
Jun 01, 2022

Office365 Message Tracking API Oauth2.0 support

Hi,

 

We want to use Oauth2.0 (using ClientId, TenantId, SecretId) authentication for Office365 message tracking API (https://reports.office365.com/ecp/ReportingWebService/Reporting.svc/MessageTrace) but getting 401 unauthorized exception stating invalid credentials.

 

Additionally, the same API is accessible with basic authentication (using username/password).

Note: Office365 management activity API is accessible with Oauth2.0 using the same credentials.

 

Please let us know if the message tracking API can be accessible with Oauth2.0 and what is the correct approach to do so.

Any sample code with the suggestions will be highly appreciated.

Resources