Forum Discussion
AB21805
May 02, 2024Bronze Contributor
Create teams meetings between users in bulk
Hi all,
We have meetings between teachers and parents, we have all the emails / times in an excel sheet but we want to bulk create these meetings for the correct times for the teachers is this possible?
- LeonPavesicSilver Contributor
Hi AB21805,
it is possible to do that using MS Graph API and Powershell.
First, you need to register an Azure AD App registration:- Create an App in Azure AD: Instead of directly using your O365/Azure credentials, you'll need to register a dedicated application within Azure Active Directory (Azure AD). This app will act as the authorized entity requesting access.
- Use a Client Secret for Authentication: Instead of entering your personal password, you'll generate a secure client secret within the registered application. This secret will be used to authenticate your application with Azure AD.
Quickstart: Register an app in the Microsoft identity platform - Microsoft identity platform | Microsoft Learn
Two methods are available after app registration and client secret creation:
Using PowerShell Module:
- Install the "Microsoft.Graph.CloudCommunications" module.
- Use the New-MgUserOnlineMeeting cmdlet to directly create an online meeting.
Using PowerShell Cmdlet:
- Use the Invoke-RestMethod cmdlet to send specific requests to the Microsoft Graph API for creating online meetings.
https://learn.microsoft.com/en-us/graph/api/resources/teams-api-overview?view=graph-rest-1.0
- Use the Invoke-RestMethod cmdlet to send specific requests to the Microsoft Graph API for creating online meetings.