> For the complete documentation index, see [llms.txt](https://docs.we360.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.we360.ai/deployment-and-it-ops/integrations-and-api-access/integrations/portal-integrations/microsoft-attribution-sync.md). Agents can also search and read this documentation through its [MCP server](https://docs.we360.ai/~gitbook/mcp).

# Microsoft Attribution Sync

Sync Microsoft Entra directory data to we360.ai for attribution.

Use this integration to sync Microsoft Entra directory data to we360.ai.

The sync runs weekly. You can also run it manually from we360.ai.

## Before you start

You need a Microsoft Entra app.

You also need these values for we360.ai:

* Microsoft Tenant ID
* Client ID
* Client Secret

{% hint style="warning" %}
Grant the required Microsoft Graph permissions and admin consent before saving the integration.
{% endhint %}

## Create the Microsoft Entra app

{% stepper %}
{% step %}

### Open app registrations

Sign in to the Microsoft Entra admin center.

Use an account with at least **Cloud Application Administrator** access.

If you manage multiple tenants, switch to the correct tenant first.

Go to **Identity → Applications → App registrations**.
{% endstep %}

{% step %}

### Register a new app

Select **New registration**.

Enter a display name for the app.

Set **Supported account types** to **Accounts in this organizational directory only (single tenant)**.

Select **Register**.
{% endstep %}
{% endstepper %}

## Configure the integration in we360.ai

{% stepper %}
{% step %}

### Open the integration

In we360.ai, go to **Settings → Integrations**.

Open **Microsoft Attribution Sync**.
{% endstep %}

{% step %}

### Enter the tenant ID

Copy **Directory (tenant) ID** from the Entra app overview page.

Paste it into **Microsoft Tenant ID (Organization ID)** in we360.ai.
{% endstep %}

{% step %}

### Enter the client ID

Copy **Application (client) ID** from the Entra app overview page.

Paste it into **Client ID (Application ID)** in we360.ai.
{% endstep %}

{% step %}

### Create the client secret

In Entra app go to **Manage → Certificates & secrets**.

Select **New client secret**.

Add a description, choose an expiry, then select **Add**.

Copy the new secret value.

Paste it into **Client Secret** in we360.ai.
{% endstep %}

{% step %}

### Save the integration

Save the configuration in we360.ai.
{% endstep %}
{% endstepper %}

{% hint style="warning" %}
Unique identifier matching is case-sensitive. It is also whitespace-sensitive.
{% endhint %}

## Add Microsoft Graph permissions

Go to **Manage → API permissions** in the Entra app.

Add these **application permissions**:

* `Directory.Read.All`
* `User.Read.All`

Grant admin consent for the tenant after adding them.

## Run a sync

The integration syncs automatically every week.

To update sooner, open **Microsoft Attribution Sync** in **Settings → Integrations** and run a manual sync.

## Official Microsoft references

* [Register an application in Microsoft Entra](https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app?tabs=certificate)
* [Configure app access to web APIs](https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-configure-app-access-web-apis)


---

# 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.we360.ai/deployment-and-it-ops/integrations-and-api-access/integrations/portal-integrations/microsoft-attribution-sync.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.
