> For the complete documentation index, see [llms.txt](https://docs.cloudassert.com/hybr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudassert.com/hybr/installation/hybr-pre-requisites/identity-providers/aad-pre-requisites-for-hybr.md).

# Microsoft Entra ID

This document helps you to get the below information for integrating Microsoft Entra ID with HYBR application,

1. Directory ID or Tenant ID (can get it from overview page of Microsoft Entra ID)
2. Application ID
3. Application Client Secret

## **Steps**

#### Obtain a Client Id and Client Secret for a Microsoft Microsoft Entra ID

**Step 1:** Sign-in Azure portal

**Step 2:** Go to Microsoft Entra ID --> App Registration&#x20;

<figure><img src="/files/ha6ObAbDrGR3RcV8Sb8b" alt=""><figcaption></figcaption></figure>

**Step 3:** Click **New Registration** to register for a new App for HYBR application

<figure><img src="/files/vq0HFnv8iTK7fjIXiP0z" alt=""><figcaption></figcaption></figure>

**Step 4:** Register the new App by providing the appropriate values. (select Multi-Tenant if different Microsoft Entra ID domain will be used for tenant)

<figure><img src="/files/oPglt8v1Ewgrmwkfiajx" alt=""><figcaption></figcaption></figure>

**Step 5:** Choose the application, to get the Client ID value and copy it to the clipboard. The Client ID and Application ID are same value from the Azure application as shown in the below. Go to Application in Azure portal and check the value in **Application (client) ID.**

&#x20;**For Example:** The Client ID looks like:

* Client ID: 53ba6f2b-6d52-4f5c-8ae0-7adc20808854

<figure><img src="/files/PHrboToqNAno2pqDRKCd" alt=""><figcaption></figcaption></figure>

**Step 6:** To get the Client ID Secret, Go to Application and select Certificates & Secrets in left side section.

**Step 7:** Create New Client secret & give the expiry date as per your requirement.

**Step 8:** Once Client secret created, copy It to clipboard (cannot get the secret if missed to copy).

**For Example:** The Client Secret:

Client Secret: NMubGVcDqkwwGnCs6fa01tqlkTisfUd4pBBYgcxxx=

<figure><img src="/files/R2jYavhFOO7iYDkXMCct" alt=""><figcaption></figcaption></figure>

**Step 9:** Select Authentication Page in Azure application left side section and click Add a platform then choose web.

<figure><img src="/files/zHytCIQ1s1ofhWXxtXcG" alt=""><figcaption></figcaption></figure>

**Step 10:** Add **redirect URL’s** in authentication page and

&#x20;     Sub-domain Name will be defined while deploying HYBR

&#x20;            `https://<Hybr_Admin_URL_name>/OrgAccounts/SignInSuccess`

&#x20;            `https://<Hybr_Admin_URL_name>/OrgAccounts/SignOutCallback`

&#x20;            `https://<Hybr_Tenant_URL_name>/Accounts/SignInSuccess`

&#x20;            `https://<Hybr_Tenant_URL_name>/Accounts/SignOutCallback`

&#x20;            `https://<Hybr_Tenant_URL_name>/Register/SignInSuccess`

<figure><img src="/files/YjlhO4dM8pJ7vZeGz1Vn" alt=""><figcaption></figcaption></figure>

**Step 11:** select "**Access tokens"** and select **single tenant** directory or **multi-tenant** directory by based on requirements.

<figure><img src="/files/CmC3V9B7Y2krqaPjm58E" alt=""><figcaption></figcaption></figure>

**Step 12:** After fill the redirect URL’s and then click save.

<figure><img src="/files/aEPw0mJV1RoPkde4iAdz" alt=""><figcaption></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.cloudassert.com/hybr/installation/hybr-pre-requisites/identity-providers/aad-pre-requisites-for-hybr.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.
