How to configure Office365 to send logs to CQ Server
This guide describes the procedure for audit activation on Office365 application.
To collect logs from the Office 365 application, we need to follow the following steps:
Step 1 - Registering the CQ Application in Office 365
A.Authentication in the Office 365 admin center
B.Select Home > Setup > Identity page
C.Select Applications > App registrations
D.Click on the New registration button
E.Complete the application Name, select Supported account types and press the Register button
The page with what you registered earlier opens:
You need to copy the fields below:
a)Application (client) ID
b)Directory (tenant) ID
Step 2 - API Permissions
A.Select API Permissions > + Add a permission
B.Select Office 365 Management API and configure permissions as follows:
1.Select Application permissions, and then select ActivityFeed.Read.
2.Select Add permissions.
C.Select Grant Admin Consent for (your organization). Prerequisites: Grant tenant-wide admin consent to an application
The API permissions now reflect delegated ActivityFeed.Read with a status of Granted for (your organization).
Reference:link
Step 3 - Creating the Secret Key
A.Select Home > App Registrations page and choose the application name created in Step 1
B.Select Manage > Certificates & secrets > Client secrets page
C.Click on the New client secret button
D.Complete the Description, select the Expire period and click on the Add button
Copy the secret key from the Value field: