# Microsoft 365

### Connect Microsoft 365 in Violet

To connect Microsoft, you'll first need to configure Microsoft Permissions and Tenant ID.

#### Configure Microsoft Permissions and Tenant ID

1. First, confirm that you have either **Global Administrator** or **Privileged Role Administrator** permissions in Microsoft Azure Active Directory (AAD):
   1. Log in to your [organization’s page in Microsoft AAD](https://portal.azure.com) and select **Users**:

      <img src="/files/9ZgnKaY6euCMErRMRNkd" alt="" width="238">
   2. Click on your user profile or that of the user(s) who will be integrating Microsoft data in Violet.

      <img src="/files/SQm68VZkM9bhefe2NI97" alt="" width="563">
   3. In the user’s profile, click on **Manage > Assigned Roles**.

      <img src="/files/yQVLW5E259kdKeXeyoqy" alt="" width="563">
   4. Select **Add Assignments**, search for either **Global Administrator** or **Privileged Role Administrator**, select it, and click **Add.** Confirm the user has been assigned the role(s):

      <img src="/files/Vb53UrLMAu0iZGLRk55B" alt="" width="563">

#### Connect Microsoft in Violet

1. In [Violet](https://app.violetlabs.com/) (or [VioletGov](https://app.violetgov.com/)), navigate to **Integrations** and click  <img src="/files/IS4aq5Ad1Nr6RFUu4LLg" alt="" data-size="line"> to add a new integration.&#x20;
2. Select <img src="/files/y4NrrP05dle2m0aKbCxa" alt="" data-size="line"> **Microsoft 365**
3. Create your connection:
   1. In the integration pane, the **Authorization Server** and **Server** fields should auto-fill with the information below. Confirm they are populated and click **Test Connection.**

      \
      Authorization server: <https://login.microsoftonline.com/>

      Server: <https://graph.microsoft.com/v1.0>

      <img src="/files/Sda84XvQWMw3ASpCQy1O" alt="" width="563">
   2. From the Microsoft pop-up window, select the user account who was assigned the Administrator role(s):

      <img src="/files/r517IkenqXNKij8Gc7YQ" alt=" " width="375">
   3. Click **Accept:**

      <img src="/files/IVA3r7pb13Ezt5BTGAyN" alt="" width="243">
   4. The **Tenant ID** field should auto-fill with your Tenant ID. Once populated, click **Create Connection.**

      <img src="/files/7ea9nez62sDGEImVnbzs" alt="" width="375">
4. Last, configure your integration by specifying your **SharePoint Site ID**.
   1. To find your ID, click on the Gear icon in the top right corner of your SharePoint site, then select **Site Information**. Your Site ID will be listed there.
5. Click **Create.** You're done!


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.violetlabs.com/apps/m/microsoft-365.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
