# Office365 / Microsoft AD

# Requirements

CyberSift SIEM uses [**Filebeat **](https://www.elastic.co/beats/filebeat)to collect logs from a variety of cloud providers such as MS Azure and Google Cloud Platform


Filebeat requires some access to Azure. The steps required to provide this are listed below:

* [Enable audit logging on Azure](https://learn.microsoft.com/en-us/purview/audit-log-enable-disable?view=o365-worldwide#turn-on-auditing) 
* [Register a new application in Azure](https://learn.microsoft.com/en-us/office/office-365-management-api/get-started-with-office-365-management-apis#use-the-azure-portal-to-register-your-application-in-azure-ad)

## Permissions


1. Create a new App registration 
2. Set the following Permissions

The Azure app needs the following permissions to work:

* `User.Read`
* `ActivityFeed.Read`
* `ActivityFeed.ReadDlp`
* `ServiceHealth.Read`
* `User.Read.All`


 ![](https://outline.cybersift.io/api/files.get?sig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiJ1cGxvYWRzL2MwNWNhZDYzLTA0ZmEtNGFmZC04NjMwLTI3MjNjZDYwZWZkNS9lMzUzMTExZi1jMWM2LTQ0MTktOGI1NS0xMzI3YWNiOTBhM2IvaW1hZ2UucG5nIiwidHlwZSI6ImF0dGFjaG1lbnQiLCJpYXQiOjE3OTUxNDcyMDAsImV4cCI6MTc5NTIzMzYwMH0.IxyjE5mYp6HhHwe3Kr8077SapkYDdleWLIkWqlfpam4 " =770x298")


Ensure that for `Office 365 Management APIs`, “Application permissions” are selected rather than “delegated” as shown below:


 ![](https://outline.cybersift.io/api/files.get?sig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiJ1cGxvYWRzL2MwNWNhZDYzLTA0ZmEtNGFmZC04NjMwLTI3MjNjZDYwZWZkNS9kMjIyMjlmYy1lZWUzLTQ5ZjUtYWMyNC1hNzY0YjQ4OWY5OTQvaW1hZ2UucG5nIiwidHlwZSI6ImF0dGFjaG1lbnQiLCJpYXQiOjE3OTUxNDcyMDAsImV4cCI6MTc5NTIzMzYwMH0.FyooLyp87xBYhYrboIfrosnYMURwJG5fNNVpiRt6Uig " =770x248")



3. Ensure that you click “Grant admin consent…“

 ![](https://outline.cybersift.io/api/files.get?sig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiJ1cGxvYWRzL2MwNWNhZDYzLTA0ZmEtNGFmZC04NjMwLTI3MjNjZDYwZWZkNS85ZjIzMWViNC04MTQwLTQwNjUtYjY3Ni0zMmE1YmFlZmUzNWIvaW1hZ2UucG5nIiwidHlwZSI6ImF0dGFjaG1lbnQiLCJpYXQiOjE3OTUxNDcyMDAsImV4cCI6MTc5NTIzMzYwMH0.eZ1BgoT0EbG-8GwEdMJPjqo5V2I8rf18ANa3LM_F3rQ " =527x223")


---


:::success
Available on [Data Gallery](/doc/6ecc8c58-3d81-4f32-80e0-984c8092653e)   
No NiFi configuration required! 

:::

## NiFi Provisioning


:::warning
**Cybersift Support Required**

At this point in time, Cybersift will do the NiFi provisioning for you and connect you to our Machine Learning algorithms.  
  
Please provide the below details to support@cybersift.io


* **The Azure Tenant Name** - Usually this is your domain
* **The Azure Tenant ID**
* **The Azure Application ID**


* **The client secret** *(Please use a service such as* [*https://onetimesecret.com/en/*](https://onetimesecret.com/en/) *and **NEVER send the token in plain text**)*  
    
  ![Snippet](https://outline.cybersift.io/api/files.get?sig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiJ1cGxvYWRzL2MwNWNhZDYzLTA0ZmEtNGFmZC04NjMwLTI3MjNjZDYwZWZkNS83MmFlNmM3YS02YzgyLTQyMzYtYjc1Ny1jNzNkMjhmN2Q1NjIvaW1hZ2UucG5nIiwidHlwZSI6ImF0dGFjaG1lbnQiLCJpYXQiOjE3OTUxNDcyMDAsImV4cCI6MTc5NTIzMzYwMH0.NE0GsuxVprWrF6rhsWfcCTydgQHWHDSgC2Cd6Y52o4k " =1321x612")

:::



---


:::info
**tags**:

* Office365 / Microsoft AD Logs Setup
* NiFi Office365 / Microsoft AD Setup

:::

---

**Documents**

- [Logs and Architecture](https://outline.cybersift.io/s/sentio-siem/doc/logs-and-architecture-acvUiDgvI5)
- [Sentio](https://outline.cybersift.io/s/sentio-siem/doc/sentio-KuYAbF5grr)
- [ISO27001:2022](https://outline.cybersift.io/s/sentio-siem/doc/iso270012022-7S5IzvF6a0)
- [FAQ](https://outline.cybersift.io/s/sentio-siem/doc/faq-vVyRNyNb60)