Member-only story

How to get Microsoft Teams ID using Microsoft Graph API

Venkadesh Sundaramurthy
2 min readJul 4, 2023

--

In this article, we will walk through the process of obtaining the Microsoft Teams ID using the Graph API in Graph Explorer.

Steps:

  1. Open Graph Explorer.
  2. Sign in with your user credentials, which are used for signing in to Microsoft Teams.
  3. Fill in the required details as mentioned below and click “Run query”.
HTTP Method : GET
Version : v1.0
URL : https://graph.microsoft.com/v1.0/groups?$filter=displayName eq ‘{teams-display-name}’&$select=id

Note:

Incase of Forbidden error thrown by Graph API, find the missing permission from the error message. In this case, consider Team.ReadBasic.All (or other pemission as you prefer)

Navigate to Modify Permissions (Preview) Tab > (consider Team.ReadBasic.All for this scenario) click consent

Summary

Summary: In this article, we learned how to obtain the Microsoft Teams ID using the Graph API in Graph Explorer. It’s important to note that there are alternative methods for retrieving the ID, such as using Microsoft Teams itself (via the “Get Link” feature), PowerShell script, Power Automate, and others.

--

--

Venkadesh Sundaramurthy
Venkadesh Sundaramurthy

Written by Venkadesh Sundaramurthy

Solution Architect | Microsoft 365 | SharePoint | Power Platform | Azure | Integration | Automation | Super User in Power Automate community

No responses yet