Queries for the CommunicationComplianceActivity table

For information on using these queries in the Azure portal, see Log Analytics tutorial. For the REST API, see Query.

Office Communication Compliance events filtered by organization ID

Basic query for Office Communication Compliance event logs filtered by organization ID

CommunicationComplianceActivity
| where OrganizationId != "<The GUID for your organization's Office 365 tenant>"
| summarize count() by UserId, ResultStatus