> For the complete documentation index, see [llms.txt](https://docs.guardware.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.guardware.com/documentation/management-console/integrations/microsoft-365.md).

# Microsoft 365

You can connect GuardWare to Microsoft 365, enabling GuardWare to access and monitor data stored in services such as **Exchange Online**, **SharePoint Online**, and **OneDrive**. This integration supports data discovery, security monitoring, risk management, and reporting capabilities within your Microsoft 365 environment.

## Prerequisites

**Before integrating, ensure you have:**

* An active Microsoft Azure subscription. We recommend using a *Pay-As-You-Go* subscription.
* Access to the Microsoft Azure Portal with the required administrative permissions, preferably a Global Administrator account.
* Provide the GuardWare team with the [**domain name or IP address**](https://docs.guardware.com/getting-started/install-guardware-server/install-guardware-management-console.md#fresh-installation) used to access the GuardWare Management Console. GuardWare uses this information to configure the required redirect URI for your application. This prevents an Azure AD redirect URI mismatch error during sign-in.

{% hint style="info" %}
To use MIP integration with GuardWare, your organisation must have a Microsoft licence that includes Microsoft Purview Information Protection (sensitivity labelling) capabilities, such as Microsoft 365 Business Premium, Microsoft 365 E3, Microsoft 365 E5, Azure Information Protection P1/P2.
{% endhint %}

## Connect Microsoft 365 using GuardWare's application

1. Navigate to **ORGANISATION** > **Integrations >** **Microsoft 365.**&#x20;
2. Select the GuardWare products you want to connect to Microsoft 365 and click **Connect Microsoft 365**. You'll be redirected to Microsoft's sign-in page.

   1. If you select **PROTECT**, you can optionally select **Use Azure SCIM for managing Users and Security Groups** to provision and manage users and security groups in PROTECT.\
      \
      When enabled, Azure SCIM provisioning allows you to synchronise users and security groups from Microsoft Entra ID (Azure AD) with GuardWare. This helps you manage user and group information centrally in Azure rather than managing these entities separately in GuardWare.\
      \
      **Important:** Selecting this option does not automatically configure or activate SCIM provisioning. You must also configure Azure SCIM provisioning in GuardWare to establish the provisioning connection and enable synchronisation.\
      \
      Until the provisioning configuration is completed and the initial synchronisation is successful, no users or security groups will be available in PROTECT through Azure SCIM.\
      \
      For instructions, see [Configure Azure provisioning in GuardWare](https://docs.guardware.com/documentation/protect/azure-configurations/configure-azure-provisioning-in-guardware).&#x20;

   <figure><img src="https://3428346635-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBUWYzeE1fa6LGkJgqgik%2Fuploads%2FG0P4kYEo5KTodpEmEYPZ%2Fimage.png?alt=media&amp;token=34f7645c-5f7e-4ddc-90f2-1fbf1caa03a8" alt=""><figcaption></figcaption></figure>
3. Select your Global Administrator account or click **Use another account** if it is not listed.

<figure><img src="https://3428346635-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBUWYzeE1fa6LGkJgqgik%2Fuploads%2Fd2Buwbge6n0I2xT22131%2Fimage.png?alt=media&amp;token=f6693bb7-432a-4983-a25d-06832a39f696" alt="" width="480"><figcaption></figcaption></figure>

4. Enter your Global Administrator email address and password. Click **Next** and sign in.
5. If your account is protected by multi-factor authentication (MFA), you'll need to approve the sign-in request. This might involve:
   1. Approving a notification in the Microsoft Authenticator app.
   2. Entering the code from your authenticator app.
   3. Responding to a text message or phone call, depending on your MFA settings.

<figure><img src="https://3428346635-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBUWYzeE1fa6LGkJgqgik%2Fuploads%2FaBlhDRJRQyXnK9dR6cuz%2Fimage.png?alt=media&amp;token=7f780922-b416-4d78-a9c6-5b0f19865d7f" alt="" width="480"><figcaption></figcaption></figure>

6. After authenticating, you'll see a permissions consent screen listing what DISCOVER is requesting access to. Check the box labelled **Consent on behalf of your organisation** and click **Accept**.

<figure><img src="https://3428346635-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBUWYzeE1fa6LGkJgqgik%2Fuploads%2FYogrJFNuLLIFAu1wPw6A%2Fimage.png?alt=media&amp;token=6c2c8c4d-2641-4868-8258-1871cc3d5626" alt="" width="563"><figcaption></figcaption></figure>

7. You'll be redirected back to the GuardWare Management Console. A confirmation message will appear stating “Microsoft 365 monitoring configured successfully.”

<figure><img src="https://3428346635-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBUWYzeE1fa6LGkJgqgik%2Fuploads%2F3LRPhiIzKDAlTudfCq3f%2Fimage.png?alt=media&amp;token=83a1e948-5cfc-41c7-a90b-a860733749bb" alt="" width="320"><figcaption></figcaption></figure>

### Check Microsoft 365 permissions

The Permission Status section allows you to verify whether the required Microsoft 365 permissions and roles are available for the configured integration.

After connecting Microsoft 365:

1. Navigate to **ORGANISATION > Integrations > Microsoft 365**.
2. Locate the **Permission Status** section.
3. Click **Run First Check** to validate the integration.

   GuardWare checks the authentication certificate first and then verifies the required Microsoft Graph API permissions and roles.
4. Review the permission status displayed on the page.

   The results include:

   * **Permission status:** Indicates whether all required permissions and roles are granted or whether any issues need attention.
   * **Granted Roles:** Displays the roles successfully assigned to the integration.
   * **Missing Roles:** Displays any required roles that have not been granted.

   The page also displays the date and time when the permissions were last checked.

## Configure Microsoft 365 using your own application

If your organisation prefers not to use GuardWare's application, you can register your own application in Microsoft Azure (Microsoft Entra ID) and use its credentials and authentication certificate to configure the integration.

This approach gives your organisation control over the application registration and authentication certificate used for Microsoft 365 monitoring.

#### Prerequisites

Before configuring this option, ensure that you have:

* Registered an application in Microsoft Azure (Microsoft Entra ID).
* Configured the required Microsoft Graph API permissions for your application.
* Generated an authentication certificate in `.pfx` format.
* The application (client) ID and directory (tenant) ID of your registered application.
* The certificate password and expiry date.

**To configure Microsoft 365 using your own application:**

1. Navigate to **ORGANISATION > Integrations** > **Microsoft 365**.
2. Click the **Microsoft 365 Authentication Certificate** tab.
3. Enter the following details:
   * **Tenant ID:** Enter the Directory (tenant) ID of the application registered in Microsoft Azure.
   * **Client ID:** Enter the Application (client) ID of your registered application.
   * **Certificate Password:** Enter the password associated with your `.pfx` certificate file.
   * **Certificate Expiry Date:** Specify the expiry date of the authentication certificate.
   * **Certificate File Upload:** Upload the `.pfx` certificate file associated with your application. You can drag and drop the file into the upload area or click it to browse your computer.
4. Click **Save**.<br>

   <figure><img src="https://3428346635-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBUWYzeE1fa6LGkJgqgik%2Fuploads%2FE4aNO8mPws9IgfU3GDvr%2Fimage.png?alt=media&amp;token=38fa1130-66b6-43f6-8674-3ee529092555" alt=""><figcaption></figcaption></figure>

Once saved, GuardWare uses your application details and authentication certificate for Microsoft 365 authentication.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.guardware.com/documentation/management-console/integrations/microsoft-365.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
