> ## Documentation Index
> Fetch the complete documentation index at: https://docs.langdock.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Microsoft Integrations: Permissions & Admin Approval

> Understand Microsoft permission types, grant admin consent, and review what permissions Langdock requires for Microsoft integrations.

> [!WARNING]
>
> Before admin approval is granted, no user can connect a Microsoft integration. Users will see a **"Need admin approval"** or **"Approval required"** error.

This applies to the following integrations: **Excel**, **Microsoft Teams**, **OneDrive**, **Outlook Calendar**, **Outlook Email**, **Planner**, and **SharePoint**.

## Understanding Permission Types

Microsoft uses two types of OAuth permissions:

| Type | Who Acts | When Used |
| - | - | - |
| **Delegated** | User on their own behalf | User is signed in. Actions happen as that user with their access rights. |
| **Application** | App on behalf of org | No user signed in. App has its own access (e.g., background jobs). |

> [!NOTE]
>
> **Langdock uses delegated permissions.** When you connect a Microsoft integration, Langdock acts on your behalf with your existing access rights—it cannot access data you don't already have access to.

## Granting Admin Consent

A Microsoft admin must grant tenant-wide consent before users can connect Microsoft integrations.

> [!NOTE]
>
> **Prerequisite:** A user or admin must have attempted to connect an integration at least once. This triggers the creation of the Langdock Service Principal in your tenant.

**1. Open Microsoft Entra**

Sign in to the [Microsoft Entra admin center](https://entra.microsoft.com/) as a Cloud Application Administrator or Global Administrator.

**2. Find Langdock**

Go to **Identity** → **Applications** → **Enterprise applications** → **All applications** and select **Langdock**.

**3. Grant Consent**

Under **Security**, select **Permissions**, then click **Grant admin consent for \[Your Organization]**.

**4. Verify in Langdock**

In Langdock, go to **Workspace settings → Integrations**, select a Microsoft integration such as Outlook Calendar, and connect your account to confirm it works.

For more details, see Microsoft's documentation on [granting tenant-wide admin consent](https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/grant-admin-consent?pivots=portal#grant-tenant-wide-admin-consent-in-enterprise-apps-pane).

## Reviewing Granted Permissions

After granting consent, you can review all permissions in Microsoft Entra:

1. Go to **Identity** → **Applications** → **Enterprise applications** → **Langdock**
2. Under **Security**, click **Permissions**

![Delegated permissions in Microsoft Entra](https://mintcdn.com/langdock-34/bLErUnzGNMtd2r4c/images/delegatedPermissions.png?fit=max\&auto=format\&n=bLErUnzGNMtd2r4c\&q=85\&s=0380ff1a0be4998eed0d214f80fa2351)

The **Type** column shows "Delegated" for all Langdock permissions—confirming Langdock only acts on behalf of signed-in users.

## Viewing Required Permissions per Integration

Each Microsoft integration requires specific permissions (scopes). To see what a particular integration needs:

1. In Langdock, go to **Workspace settings → Integrations**
2. Select the Microsoft integration, such as Outlook Calendar
3. Scroll to **Scopes and Action Access**
4. Open **Scope view** to review the required scopes

Scopes for Graph-based integrations map to [Microsoft Graph permissions](https://learn.microsoft.com/en-us/graph/permissions-reference). Azure DevOps, Azure Resource Manager, Power BI, Microsoft Fabric, and Dynamics 365 use provider-specific scopes or permissions. See [Microsoft integration scopes](https://docs.langdock.com/en/admin/manage-integrations/microsoft-integration-scopes.md) for the complete mapping.

### Common Permissions

| Permission | What It Allows |
| - | - |
| `Calendars.ReadWrite` | Read and create calendar events |
| `Mail.ReadWrite` | Read and send emails |
| `Files.ReadWrite.All` | Access OneDrive/SharePoint files |
| `User.Read` | Read your basic profile |
| `offline_access` | Maintain access without re-login |

## Customizing Permissions

If your organization requires different scopes than Langdock's defaults, you can configure your own OAuth client.

> [card] [Configure Custom OAuth Client](https://docs.langdock.com/en/admin/manage-integrations/bring-your-own-oauth.md)
>
> Set up your own OAuth application to control exactly which scopes are requested.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.