# Online lessons – integration with MS Teams

URL: https://help.langlion.com/en/online-teaching/online-lessons-integration-with-ms-teams/

Now, besides **Zoom** and **ClickMeeting** you can use integration with **MS Teams**.

In addition to communicating with participants, using Microsoft Teams you can, among others: add presentations, co-create boards with meeting participants, or create thematic channels.

Below you will find detailed step-by-step instructions on how to do this.

**How to start?**

In the first step go to the „**Settings**” – „**Basic settings**” tab in the „Administration” module and then to the „**Online lessons**” tab. Then, from the drop-down list, select Microsoft Teams as the default online lesson provider in the system and confirm by clicking „**Save**„.

![Basic settings, Online lessons tab with Microsoft Teams as the default provider](https://help.langlion.com/en/img/online-teaching/online-lessons-integration-with-ms-teams-1.webp)

![Microsoft Teams section with Tenant ID, Client ID, Client Secret, User ID and Check configuration](https://help.langlion.com/en/img/online-teaching/online-lessons-integration-with-ms-teams-2.webp)

- **Tenant ID**: Your organization’s unique identifier in Microsoft Azure Active Directory (Azure AD). This is a unique tenant (organization) identifier that is used in the context of applications using Azure AD.
- **Client ID**: The unique identifier of the application registered in Azure AD. This identifier allows you to recognize a specific application that wants to access resources in Microsoft 365 (e.g. Microsoft Teams).
- **Client Secret**: The password or key used by the application for authorization in Azure AD. Acts as a credential for the application and is required when attempting to obtain an access token on behalf of the application.
- **User ID**: A unique user ID in the system. In the context of Microsoft Azure AD or Teams, it is a unique person identifier that can be used to identify users in the API, e.g. when creating Teams meetings for a specific user.

**To integrate LangLion with Microsoft Teams, you need a business account with the Teams package (Microsoft 365 & Microsoft Teams).**

Sign in to your Microsoft Azure account click [here](https://azure.microsoft.com/)

![Microsoft Azure sign-in page for the Teams integration](https://help.langlion.com/en/img/online-teaching/online-lessons-integration-with-ms-teams-3.webp)

In the search engine, enter: Entra ID and select from the list „**Microsoft Entra ID**”

![Azure search box with Microsoft Entra ID selected](https://help.langlion.com/en/img/online-teaching/online-lessons-integration-with-ms-teams-4.webp)

Then go to the tab: „**Manage**” —> „**Users**”

![Microsoft Entra ID Manage menu with the Users option](https://help.langlion.com/en/img/online-teaching/online-lessons-integration-with-ms-teams-5.webp)

> **Note:** Make sure User is assigned a license in Microsoft 365 with Teams.

![Azure user list showing license assignment for Microsoft 365 with Teams](https://help.langlion.com/en/img/online-teaching/online-lessons-integration-with-ms-teams-6.webp)

Copy the data from the „**Object ID**” field and paste it into the Configuration on the platform in the „**User ID**” field:

![Object ID copied into the User ID field in LangLion](https://help.langlion.com/en/img/online-teaching/online-lessons-integration-with-ms-teams-7.webp)

To run online meetings you need to create an application in Microsoft Azure to handle creating meetings without user context. To do that log into Azure, and search for “App registrations”.

![Azure App registrations search result](https://help.langlion.com/en/img/online-teaching/online-lessons-integration-with-ms-teams-8.webp)

Then click: „**+ New registration**”

![Azure App registrations with the New registration button](https://help.langlion.com/en/img/online-teaching/online-lessons-integration-with-ms-teams-9.webp)

Complete the fields of the form below:

- Name – application display name—–> for example “LanglionTeamsIntegration”
- Supported account types—> Accounts in any organizational directory (Any Microsoft Entra ID tenant – Multitenant)
- Redirect URI ——> leave empty for now.

Then click: **„Register”**

![Azure registration form with multitenant account type and the Register button](https://help.langlion.com/en/img/online-teaching/online-lessons-integration-with-ms-teams-10.webp)

Now you will see your new added app in the list below:

![Registered application shown in the Azure app list](https://help.langlion.com/en/img/online-teaching/online-lessons-integration-with-ms-teams-11.webp)

Next enter in the platform configuration:

Application (client) ID => Client ID
Directory (tenant) ID => Tenant ID

![Azure application overview with Client ID and Tenant ID values](https://help.langlion.com/en/img/online-teaching/online-lessons-integration-with-ms-teams-12.webp)

![Tenant ID and Client ID fields in the Microsoft Teams section](https://help.langlion.com/en/img/online-teaching/online-lessons-integration-with-ms-teams-13.webp)

**Authentication**

Go to “**Manage** — > „**Authentication**”, click “**Add a platform**” (to do this, scroll down the page) mark the fields as in the photo below and then save using the „**Save**” button.

![Azure Authentication settings with marked fields and the Save button](https://help.langlion.com/en/img/online-teaching/online-lessons-integration-with-ms-teams-14.webp)

In the “Manage” tab, select “Certificates & secrets” and click on the “Client secrets” tab——-> “+ New client secret” and fill it in with the data:

complete the form: **Description**:——->Team Integration Secret
**Expires** ————->24 months

and at the bottom of the page click „**Add**„

![Azure Certificates and secrets with description, expiry and the Add button](https://help.langlion.com/en/img/online-teaching/online-lessons-integration-with-ms-teams-15.webp)

![Newly created client secret in the Azure secrets list](https://help.langlion.com/en/img/online-teaching/online-lessons-integration-with-ms-teams-16.webp)

The newly created secret is visible in the list below. **Click „Copy to Clipboard” and save it somewhere safe as you will only see it once.**

![Azure client secret value with the Copy to Clipboard button](https://help.langlion.com/en/img/online-teaching/online-lessons-integration-with-ms-teams-17.webp)

Open in LangLion Teams Integration options and paste:

**“Value”** => **Client Secret** and then click „**Save**” button.

![Client Secret field in the Microsoft Teams section and the Save button](https://help.langlion.com/en/img/online-teaching/online-lessons-integration-with-ms-teams-18.webp)

The next step will be **Permissions**

In the “**Manage**” tab, select “**API permissions**” and click “**+ Add a permission**” then select “**Microsoft APIs**” -> “**Microsoft Graph**”

![Azure API permissions with the Add a permission button and Microsoft Graph](https://help.langlion.com/en/img/online-teaching/online-lessons-integration-with-ms-teams-19.webp)

Select „**Application Permissions**” in the search box, enter „**OnlineMeetings**” then check the „OnlineMeetings.ReadWrite.All” option and click „**Add permissions**„.

![Azure permission search with OnlineMeetings.ReadWrite.All checked](https://help.langlion.com/en/img/online-teaching/online-lessons-integration-with-ms-teams-20.webp)

**Newly added permissions require administrator consent** – to do so, click on the place marked in the photo below:

![Azure API permissions with the admin consent button marked](https://help.langlion.com/en/img/online-teaching/online-lessons-integration-with-ms-teams-21.webp)

Set Access Policy

To do this, go to „**Cloud Shell**„

![Azure Cloud Shell option in the top bar](https://help.langlion.com/en/img/online-teaching/online-lessons-integration-with-ms-teams-22.webp)

> **Note:** Make sure you have an active Azure subscription

If a notification like the one in the photo below appears, click on the place marked in the photo and purchase the subscription according to the instructions on the Azure website.

![Azure prompt to purchase a subscription for Cloud Shell](https://help.langlion.com/en/img/online-teaching/online-lessons-integration-with-ms-teams-23.webp)

After selecting the „**Cloud Shell**” option, a window will open at the bottom, and a cursor icon will appear after the information is loaded.

![Azure Cloud Shell window at the bottom with the command prompt](https://help.langlion.com/en/img/online-teaching/online-lessons-integration-with-ms-teams-24.webp)

Step 1. Installing Modules

Enter the commands below: (each time you enter a command, press the „Enter” key on your keyboard).

1: *Install-Module -Name PowerShellGet -Force -AllowClobber*

2. *Install-Module -Name MicrosoftTeams -Force -AllowClobber*

Step 2 – this will be a Teams connection – enter the following commands:

a) *$userCredential = Get-Credential*
*Connect-MicrosoftTeams -Credential $userCredential*

and second:

*Grant-CsApplicationAccessPolicy -PolicyName langlion-teams-policy -Global*

If everything is OK after entering this command, go to step 3.

if you encounter an error like in the photo below – (error related to two-factor device authentication):

![Cloud Shell error message about two-factor device authentication](https://help.langlion.com/en/img/online-teaching/online-lessons-integration-with-ms-teams-25.webp)

in case of this error, enter the next command from point

b: *Connect-MicrosoftTeams -UseDeviceAuthentication*

and second

*Grant-CsApplicationAccessPolicy -PolicyName langlion-teams-policy -Global*

and then click on the link that appears after entering the command (marked in the photo below) and complete the two-step authentication process:

![Cloud Shell device login prompt marked for two-step authentication](https://help.langlion.com/en/img/online-teaching/online-lessons-integration-with-ms-teams-26.webp)

Step 3. Add and assign an access policy

Entering the last command:

*New-CsApplicationAccessPolicy -Identity langlion-teams-policy -AppIds „11111111-2222-3333-4444-555555555555” –* here, instead of numbers, enter your ClientID.

**It’s ready!**

### Who can start the meeting and how to check the connection?#

In the Microsoft Teams section of the “Online lessons” tab, choose in the “Who can start meeting” field:

- “Users from organization” – only people from your Microsoft 365 organization join the meeting directly; others wait in the Teams lobby until someone admits them,
- “Everyone” – every participant joins the meeting without waiting in the lobby.

Users are required to be signed in to Microsoft Teams. Click “Save” and then “Check configuration” to verify the connection with Microsoft Teams. The button is active when the Tenant ID, Client ID, Client Secret and User ID fields are filled in.

Updated: 24 November 2026
