---
title: "How to connect to Microsoft Graph"
description: "How to connect to Microsoft Graph"
keywords: "Microsoft Graph Connection setup ODATA"
url: "https://myrapidi.com/wiki/how_to_connect_to_microsoft_graph"
locale: "en"
published: "2025-01-30T16:45:51Z"
modified: "2025-01-30T16:45:51Z"
---

Here's a simple guide on how to connect to Microsoft Graph API:  
  
**A**. **Configuration in Azure Portal:**

1. Login to portal.azure.com
2. Go To **Microsoft Entra ID**
3. Go To **App Registrations**
4. Click **+ New registration**
  - Name = [your App Name] (Example: **RapidiBCApp** )&nbsp;
  - [Section] Supported account types \> Select :&nbsp; ... **Single tenant**

5. **Click Register**
6. &nbsp;Within same screen:&nbsp;
  - &nbsp;On the API permissions page for your app, click the **Add a permission** button.&nbsp;
  - &nbsp;Make sure the **Microsoft APIs** tab is selected. In the _Commonly used Microsoft APIs_ section, click on **Microsoft Graph** and select first **Delegated permissions** and then **Application Permissions.**
  - Ensure that the right permissions are checked in both cases;
  - Click the **Add permissions** button.&nbsp;
  - You will be returned to the previous screen, and there you have to click **Grant Admin Consent for ...**. click there.&nbsp;

7. Within same screen, From the **Certificates & secrets** page, in the Client secrets section, choose **New client secret** :&nbsp;

- Type a key description (of instance app secret),&nbsp;
- Select a key duration of either In 1 year, In 2 years, or Never Expires.&nbsp;
- When you press the Add button, the key value will be displayed, copy it, and save the value in a **safe location**.&nbsp;

1. Keep the Application Id and the Application secret in a safe location – we will need these later.&nbsp;

**B. Configuration in Rapidi:**

1. Login to MyRapidi and navigate to the 'Connections' page and choose **ODATA;**
2. The fields of the **ODATA** Connection are as follows:&nbsp;

- **Code** : auto-populated&nbsp;
- **Description** : – type a proper description&nbsp;
- **Authentication Type** :&nbsp; Oauth2 (Azure AD)&nbsp;
- **Server Connect** : This is the endpoint to which the OData connection is being made. It can specifically target a specific resource within Microsoft Graph API. One example would be https://graph.microsoft.com/v1.0/9efb0c96-7560-4413-85b2-e931f9c1fd2d/users
- **Company** : Enter Company Name or you can leave it blank.&nbsp;
- **User Id** : This is the application Id (that was created on first step).
- **Password** : This is the client secret/application secret (created on the first step)&nbsp;
- **Domain** : This is the tenant id of Azure, e.g. you can find it under **Server Connect** field.
- **STS Endpoint/URN** : Enter https://graph.microsoft.com
- **Metadata URL** : https://graph.microsoft.com/v1.0/$metadata
- **Use SSL** : Mark it as True&nbsp;
