> For the complete documentation index, see [llms.txt](https://docs.nexthink.com/platform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nexthink.com/platform/library-packs/faq/entra-id-integration-for-workflows.md).

# Entra ID integration for workflows

To integrate the Microsoft Graph API with the Nexthink platform, you need to establish two points of integration. One point of integration is required to bring UPN to the data model user table. Another integration point is required to handle the API credentials.

{% hint style="warning" %}
Note that permissions for connector actions are outside the scope of this page.

Refer to the corresponding API endpoint documentation for more information on each connector action and required permissions.
{% endhint %}

### Entra ID integration <a href="#entraidintegrationforworkflows-entraidintegration" id="entraidintegrationforworkflows-entraidintegration"></a>

The workflow utilizes the Universal Principal Name (UPN) from Entra ID integration. This is necessary to populate the UPN into the Nexthink data model, where it is mapped to the `user.ad.name` field. For more information on setting up the Nexthink connector to Entra ID, refer to the [Connector for Microsoft Azure Active Directory](/platform/configuring_nexthink/bringing-data-into-your-nexthink-instance/integrating-nexthink-with-third-party-tools/inbound-connectors/connector-for-microsoft-entra-id-azure-ad.md).

The result of this integration should be that the user UPN is populated in the Nexthink user table. This user UPN is then utilized in the workflow when making Graph API calls. The following screenshots provide an example of an Entra ID connector setup and demonstrate that, when correctly set up, the users table populates with user names.

<figure><img src="/files/sQjSbI5YQ9O8k3dDelh0" alt=""><figcaption><p>Credentials setup example</p></figcaption></figure>

<figure><img src="/files/GqR0UPayx4ULeaX6VK1k" alt=""><figcaption><p>Field mappings example</p></figcaption></figure>

<figure><img src="/files/kq9JtqtI15lbmNtMWRqO" alt=""><figcaption><p>User names are populated in users table</p></figcaption></figure>

### Graph API connector integration <a href="#entraidintegrationforworkflows-graphapiconnectorintegration" id="entraidintegrationforworkflows-graphapiconnectorintegration"></a>

Configuring connector credentials is essential for enabling API calls. Refer to the detailed information on the [Connector credentials ](/platform/configuring_nexthink/bringing-data-into-your-nexthink-instance/integrating-nexthink-with-third-party-tools/outbound-connectors/connector-credentials.md)documentation page. Each Service/API thinklet has a dropdown field for credentials that needs to be filled out. When the workflow is installed or copied from the Library, this field will be blank, as it is a local setup of each environment and is not included in the Library. It’s crucial to add API read/write permissions in the Entra ID application registration setup.

<figure><img src="/files/v5OS8H1EZXk8xTiPXQ4n" alt=""><figcaption><p>Example of credentials configurations</p></figcaption></figure>

<figure><img src="/files/DuExQxBDdMAVDwfAJNVD" alt=""><figcaption><p>Thinklet with credentials field maintained</p></figcaption></figure>

Application ID in Entra application is maintained as Client ID in credential setup.

<figure><img src="/files/zCA7jjZXyCrYGduPlRM3" alt=""><figcaption><p>Application ID in Entra application is maintained as Client ID in credential setup</p></figcaption></figure>

<figure><img src="/files/9JF2hwwXT6PcEkAfGMe0" alt=""><figcaption><p>Tenant ID is used as part of the Access token URL</p></figcaption></figure>

<figure><img src="/files/ZsdN4fN5J6GwjPFe07FC" alt=""><figcaption><p>Client secret needs to be copied from App registrations, Certificates &#x26; secrets</p></figcaption></figure>


---

# 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 dynamically by asking a question.

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

```
GET https://docs.nexthink.com/platform/library-packs/faq/entra-id-integration-for-workflows.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
