---
title: Azure AD OAuth2 Setup
slug: azure-ad-oauth2-setup
docTags: 
createdAt: 2024-05-16T20:38:36.384Z
---

ObserveNow Admin App can be configured to use Azure AD OAuth2 for Authentication and Authorization. This allows organizations using **Azure AD** (aka **[Microsoft Entra ID](https://www.microsoft.com/en-in/security/business/microsoft-entra)**) to manage user Identity and Access Management (IAM). To enable Azure AD based auth, please follow the following steps:

- On the [Azure Portal](https://portal.azure.com) navigate to **Microsoft Entra ID** -> **Manage** -> **App Registrations** -> **New Registration**
- Give a unique name, choose "*Single Tenant*"  for **Supported Account Types**, and add the following URLs in redirect URLs:
  - `https://console.opsverse.io`
  - `https://console.opsverse.io/login/azuread`
- For the newly registered app, note th&#x65;**&#x20;Application (client) ID**, then click on Endpoints and note the **OAuth 2.0 authorization endpoint (v2)** and **OAuth 2.0 token endpoint (v2)&#x20;**&#x55;RLs
- Navigate to **Certificates & Secrets&#x20;**&#x61;nd create a new Client Secret with a unique name. Keep expiry as high as possible. Note the **Value&#x20;**&#x6F;f the new client-secret.
- Navigate to **App Roles.&#x20;**&#x54;he actual app roles might differ based on the set of OpsVerse tools being used. For example, in the case of ObserveNow, following are the recommedned roles:
  - Grafana Viewer - Users/Groups - Viewer - Users with View Access
  - Grafana Editor - Users/Groups - Editor - Users with Edit Access
  - Grafana Admin - Users/Groups - Admin - Users with Admin Access
- Navigate to **Enterprise Applications&#x20;**&#x61;nd search for your application. Within this application, you should be able to add Users/Groups and assign App Roles defined above to determine the level of access they should have.

To configure OpsVerse application to use this new Azure AD Config, login to the [OpsVerse Admin Console](https://console.opsverse.io/), navigate to the `Settings` page, enable Azure AD Authentication, and add the values for **Application (client) ID, OAuth 2.0 authorization endpoint (v2), OAuth 2.0 token endpoint (v2)&#x20;**&#x61;n&#x64;**&#x20;Client-Secret&#x20;**&#x77;hich you created in the previous steps.

:::hint{type="info"}
You can also work with the **OpsVerse Support Team** to configure your OpsVerse App instance to use Azure AD for authentication or if you have any other customization requirements.
:::

