# Integrate with Microsoft Teams

When the integration mode is Custom App, proceed with the following steps:

#### Prerequisites

\- Microsoft 365 Business or Enterprise account\
\- Azure Active Directory (Entra ID) Admin access\
\- Access to Azure Portal\
\- Redirect URI from Artha integration screen

{% hint style="info" %}
The integration type can be either Centralized or an Individual Employer account.
{% endhint %}

#### Step 1: Create an App Registration in Azure

1. Go to <https://portal.azure.com>
2. Click on App registrations
3. Click New registration
4. Enter app name (e.g., Artha Teams Integration)
5. For, supported account type, choose "Any Microsoft Entra ID tenant - Multitenant) and personal Microsoft accounts".
6. Click Add a platform → Web.
7. Add the Redirect URIs  provided by Artha
   1. <mark style="color:$success;">**<https://api.arthajobboard.com/admin/app-center/oauth/callback>**</mark>
   2. <mark style="color:$success;">**<https://api.arthajobboard.com/client/api/v1/app-center/oauth/callback>**</mark>
8. Click Register.
9. Copy the Client ID.<br>

   <figure><img src="https://2082584992-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3TjBKG14VRZgguFLwlBD%2Fuploads%2Fkimb4tYqJMMB6y6eEe2t%2Fimage.png?alt=media&#x26;token=482f482b-301e-4286-bbc0-b93769658681" alt=""><figcaption></figcaption></figure>

#### Step 2: Configure Redirect URI

1. Open the registered app
2. Go to Manage -> Authentication
3. Click on Add Redirect URI button
4. Click on Web -> Select
5. Add the second Redirect URI provided by Artha
6. Save changes / Configure.\ <br>

   <figure><img src="https://2082584992-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3TjBKG14VRZgguFLwlBD%2Fuploads%2F1HA1lhcG9O7G3L5If7Sn%2Fimage.png?alt=media&#x26;token=d686560b-2507-490c-93e4-8247370ba859" alt=""><figcaption></figcaption></figure>

#### Step 3: Create Client Secret

1. Go to Manage -> Certificates & secrets
2. Click "New client secret".
3. Add description and expiry for integration&#x20;
4. Click Add
5. Copy the Client Secret.<br>

   <figure><img src="https://2082584992-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3TjBKG14VRZgguFLwlBD%2Fuploads%2FpCh4W9xf5r4AATWR7AR2%2Fimage.png?alt=media&#x26;token=d3432ba4-88db-4b2b-8128-c6e55bffc9fb" alt=""><figcaption></figcaption></figure>

#### Step 4: Configure API Permissions

1. Go to Manage -> API permissions
2. Click Add a permission
3. Select Microsoft Graph
4. Choose Application permissions
5. Search the following permissions and add:\
   &#x20; \- OnlineMeetings.ReadWrite.All\
   &#x20; \- Calendars.ReadWrite
6. Choose Delegated permissions
7. Search the following permissions and add:\
   &#x20; \- Calendars.ReadWrite.Shared\
   &#x20; \- User.Read\
   &#x20; \- Calendars.ReadWrite\
   &#x20; \- OnlineMeetings.ReadWrite
8. Click Grant admin consent from the modal.<br>

   <figure><img src="https://2082584992-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3TjBKG14VRZgguFLwlBD%2Fuploads%2FKAnvGFirLW6bCec3ufPc%2Fimage.png?alt=media&#x26;token=8046510a-ad8e-46b8-9416-ec09f72fadcb" alt=""><figcaption></figcaption></figure>

#### Step 5: Enable Teams Interop

1. Navigate to <https://admin.microsoft.com>.
2. Navigate to "Users. Next to the user, go to "Manage product licenses".
3. Under Apps, find Microsoft Teams and enable if not done, and save.

#### Step 6: Enter Details on the platform.

1. Client ID
2. Client Secret
3. Click on "Connect".

<figure><img src="https://2082584992-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3TjBKG14VRZgguFLwlBD%2Fuploads%2Faqkgys1MQYwbu7r5OQlN%2Fimage.png?alt=media&#x26;token=2092112f-4153-48c9-ba4e-b25ba516d328" alt=""><figcaption></figcaption></figure>
