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

# GDAP

> Connect Neo to your customer tenants through your existing GDAP relationships, with no admin action in each tenant

This needs CSP enrollment and active GDAP relationships. Once a tenant is connected, Neo works in it through its own app, with app-only access, the same as with [Direct Consent](https://docs.neoagent.io/integrations/m365/cloud.md).

## What it takes

A few clicks in [**Integrations → GDAP**](https://dashboard.neoagent.io/integrations?open=gdap): sign in, have a Global Administrator approve Neo, and click **Connect all eligible**. The run continues in the background, and you do not need to stay on the page. A company is eligible once it is mapped to a tenant that Neo can reach through CSP, and your account's group has **Privileged Role Administrator** (or an alternative the role table lists) on that relationship. A client you add later gets a **Connect via GDAP** button on its row once it is eligible.

Your relationships need a role for each of the two jobs in [Roles your relationships need](#recommended-roles), assigned to the group of the account you sign in with.

## Connecting customer tenants via GDAP

The **Integrations → GDAP** page shows these steps as a checklist.

**1. Connect GDAP**

Click **Connect GDAP** and sign in with your Secure App Model service account. Check **Consent on behalf of your organization**, which needs a Global Administrator. If the account you use is not one, see [Connect GDAP returns to Neo and nothing changes](#troubleshooting).

**2. Grant the Partner Center permission**

Connecting GDAP consents Microsoft Graph only, so a Global Administrator approves one more permission. Use **Copy consent link**, have a Global Administrator approve, then click **I've granted it — recheck**. This lets Neo see which of your clients it can reach through GDAP. If step 1 already used the consent link, this step is done.

**3. Check the default permissions**

Neo starts with a default set of [permission categories](https://docs.neoagent.io/integrations/m365/intro.md) for each tenant. Change them here if you want, or per company later. Saving the default changes every connected company without its own override at once, after you confirm the number of tenants.

**4. Connect your clients**

Click **Find tenants from GDAP**. Neo matches your PSA companies to the customer tenants in your relationships, and you apply the matches. Then click **Connect all eligible**. Progress shows in the provisioning-run panel, and each connected company shows "via GDAP" under **M365 Access**.

For a company Neo could not match, click **Map GDAP tenant** on its row on the **Companies** page and pick the tenant. Once the tenant is mapped and Neo can reach the client through CSP, its **Connect via GDAP** button appears.

If several PSA companies map to the same Microsoft tenant, connecting one connects them all, because Neo's access belongs to the tenant. A client that owns two Microsoft tenants needs one company per tenant: see [Customers with more than one Microsoft tenant](https://docs.neoagent.io/integrations/m365/intro.md#customers-with-more-than-one-microsoft-tenant).

***

## Choosing permissions per company

These are the Microsoft permissions Neo's app holds in the client's tenant. What each agent may do with them is set on the agent: see [Granular Permission Controls](https://docs.neoagent.io/integrations/m365/intro.md#granular-permission-controls).

1. On [**Companies**](https://dashboard.neoagent.io/end-companies?access=granted\&connection=gdap), filter **Connection** to **GDAP**.
2. Open the **⋮** menu on the company's row → **GDAP permissions**.
3. Turn on **Override for this company**, select the permissions, and click **Save**.

Saving applies the selection to a connected company at once: Neo's app gets the selected permissions and loses the others. Click **See progress** to follow it in the provisioning-run panel. A company that is not connected yet gets the selection when you connect it.

Connecting adds permissions; saving the selection is what removes them. If a tenant admin removed Neo's app or Neo's GDAP access from the tenant, a save changes nothing there: connect the company again to restore access.

If several companies map to the same tenant, Neo's app holds every permission any of them selects.

You can also ask the [Neo Support Agent](https://docs.neoagent.io/chat-agents/neo-support-agent.md) to show or change a company's selection.

Some permissions carry a note that Neo uses them itself, for example to remove its app from the tenant when you stop using Neo. Clearing one stops that use in the tenant.

To keep Neo out of a client's tenant entirely, [disconnect the company](#disconnecting-a-company).

***

## Roles your relationships need

Neo acts in each customer tenant through its own app, with the Microsoft Graph permissions in your [M365 permission profile](https://docs.neoagent.io/integrations/m365/intro.md). It uses relationship roles only to set that app up. Each relationship needs a role for each of these two jobs:

| Job | Role that does it |
| - | - |
| **Consent the Neo app** | **Application Administrator**. **Cloud Application Administrator** or **Global Administrator** also works. Without one of these, consent fails with a Partner Center `403 Forbidden`. |
| **Grant Neo's app the permissions you selected** | **Privileged Role Administrator**. **Global Administrator** or **Partner Tier2 Support** (in Lighthouse default relationships) also works. |

Neo assigns **Exchange Administrator** to its own app, because app-only Exchange access needs it, unless you turn off **Auto-assign Exchange Administrator role on consent** for the company. Your account's group does not need that role. Global Administrator covers both jobs, but a relationship with it cannot auto-extend (see the suggested role set below).

**The account you sign in with must be in a security group that has a role for both jobs on each relationship.** A role on the relationship is not enough if your group's access assignment does not include it. This is the most common reason a client will not connect. The checklist flags a company whose group lacks **Privileged Role Administrator** (or an alternative) or has no access assignment there. It does not check **Application Administrator** (or an alternative): without one, the client fails only when Neo connects it, with the `403 Forbidden` above. Fix the access assignment in [Microsoft Lighthouse](https://lighthouse.microsoft.com) or [Partner Center](https://partner.microsoft.com/dashboard). For Lighthouse-managed relationships (`LHSetup`, `MLT_`), do not edit them in Entra, because Lighthouse reverts manual changes.

> [accordion] Creating a new relationship? Suggested full role set
>
> A GDAP relationship cannot be edited after you create it, so include every role you may need. Beyond Application Administrator and Privileged Role Administrator, these cover the work MSPs most often give Neo:
>
> | Role | What it covers |
> | - | - |
> | **Exchange Administrator** | Mailboxes, forwarding and delegation |
> | **User Administrator** | Users and groups; password resets for non-admins |
> | **Privileged Authentication Administrator** | Password, MFA and session resets for **admins** too. Neo gets this role only when it connects a company through GDAP with **Auto-assign Privileged Authentication Administrator role** on (off by default). For a company that is already connected, or connected with **Grant access**, a tenant admin assigns the role to the Neo Automations app in Entra |
> | **Authentication Policy Administrator** | Authentication methods policy and MFA settings |
> | **Security Administrator** | Security reports, identity protection and threat management |
> | **Cloud App Security Administrator** | Defender for Cloud Apps |
> | **Cloud Device Administrator** | Entra devices and BitLocker keys |
> | **Intune Administrator** | Intune policies and devices |
> | **SharePoint Administrator** | SharePoint Online and Microsoft 365 groups |
> | **Teams Administrator** | Microsoft Teams |
>
> Leave **Global Administrator** out. A relationship with it cannot auto-extend, so it expires and takes your access with it.
>
> Extra roles do not widen Neo's access by themselves: Neo's app can do only what your permission profile grants.

***

## Moving a direct-consent company to GDAP

A company connected by [direct consent](https://docs.neoagent.io/integrations/m365/cloud.md) can move to GDAP at any time. Neo keeps its access throughout, and no client admin consents again.

On the **Companies** page, open the **⋮** menu → **Move to GDAP** on the company's row, or use **Move to GDAP (N)** in the banner to move all eligible companies. Progress shows in the provisioning-run panel, and **M365 Access** then shows "via GDAP". After the move, the company's permissions come from your **GDAP permissions** selection.

> [!WARNING]
>
> Do not remove Neo's app in the customer tenant first. That revokes Neo's access and changes nothing in the Dashboard.

***

## Disconnecting a company

On [**Companies**](https://dashboard.neoagent.io/end-companies), open the **⋮** menu on the company's row → **Disconnect**, then confirm. The item shows only for a company connected via GDAP. Neo removes the **Neo Azure Automations** app from the customer tenant. Every other company on the same tenant loses access too.

Disconnecting needs an active GDAP relationship. If it has lapsed, reconnect GDAP first, or have an admin remove the **Neo Azure Automations** app in the tenant.

## Disconnecting GDAP entirely

In **Integrations → GDAP**, click **Disconnect GDAP**. Neo stops using your relationships, for example before you switch the connected account.

> [!WARNING]
>
> This does not remove Neo from tenants you already connected. To do that, [disconnect each company](#disconnecting-a-company) **before** you disconnect GDAP. If you already disconnected GDAP, reconnect it and then disconnect each company, or have an admin remove the **Neo Azure Automations** app in each tenant.

***

## When a GDAP relationship lapses

A relationship's first term is at most 730 days. To keep it from lapsing, turn on **Auto extend** in Partner Center while it is still active: each time the end date arrives, Microsoft adds 180 days. The customer does not need to approve this. A relationship that includes Global Administrator cannot auto-extend.

When a relationship lapses, connected tenants keep working, but you cannot connect new clients or change permissions. Create a new relationship in Partner Center with the same roles, then reconnect GDAP in the Neo Dashboard. To remove Neo from a tenant, [disconnect the company](#disconnecting-a-company) while a relationship is still active.

***

## GDAP vs Direct Consent

| | GDAP | [Direct Consent](https://docs.neoagent.io/integrations/m365/cloud.md) |
| - | - | - |
| **Who consents** | You, through GDAP. No client involvement | A tenant admin in each customer tenant |
| **CSP enrollment required** | Yes | No |
| **Changing permissions later** | Automatic | Client admin must re-approve |
| **Best for** | MSPs with many tenants | Single tenants, or non-CSP partners |

The choice is not permanent: see [Moving a direct-consent company to GDAP](#moving-a-direct-consent-company-to-gdap).

***

## Troubleshooting

> [accordion] Connect GDAP returns to Neo and nothing changes
>
> Microsoft returns you to Neo with no consent screen, and the checklist shows **A Global Administrator must approve Neo**. No Global Administrator has approved Neo yet, or a recent approval has not taken effect. Signing in again gives the same result.
>
> 1. In the checklist, click **Copy consent link**.
> 2. Send it to a Global Administrator of your partner tenant. They open it and approve.
> 3. Click **I've granted it — recheck**. If they just approved, wait a minute first.
> 4. When the checklist shows **Reconnect to finish**, click **Reconnect GDAP**.
>
> A Global Administrator can also approve in the Microsoft Entra admin center: **Enterprise applications** → **Neo Agent - GDAP** → **Permissions** → **Grant admin consent**.

> [accordion] Consent fails for a customer tenant
>
> * Check that the relationship is **Active** in Partner Center.
> * A Partner Center `403 Forbidden` usually means no consent role: check for **Application Administrator**, **Cloud Application Administrator** or **Global Administrator**. Privileged Role Administrator alone cannot consent.
> * Check that the relationship also has **Privileged Role Administrator**, **Global Administrator** or **Partner Tier2 Support**.
> * Check that your connected account's group is **assigned** those roles. See [Roles your relationships need](#recommended-roles).
> * `Unable to initialize the authorization context` can mean the relationship expired with no active replacement, or that your connected account's group has no access assignment on it. Check both.

> [accordion] Neo can't perform actions after GDAP consent
>
> * Check that Neo's app holds the directory role the action needs in the tenant, for example Exchange Administrator for mailbox work. See [Roles your relationships need](#recommended-roles).
> * Check the company's permissions in the Neo Dashboard. Missing permissions show as unavailable operations.

> [accordion] Tenant matches won't load
>
> * **"Microsoft is rate-limiting Neo's requests"**: Microsoft throttles reads of your partner relationships when you have many customer tenants. Your connection is fine and no mapping is lost. Wait a few seconds and read the list again.
> * **"Temporarily unavailable"**: a temporary failure. No mapping is lost. Wait a moment and read the list again.
> * To read the list again, click **Try again** in the **Find tenants from GDAP** window. The per-company **Map a GDAP tenant** dialog has no such button: close it and open it again.
> * **"Couldn't load tenant matches"**: reconnect GDAP, then reopen the window.


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