How to Find your Microsoft Team ID

Every team in Microsoft Teams has a unique Team ID and each channel in Teams has a unique Channel ID.  We'll show you how to easily grab both in this article.

How to Find Your Team ID in Microsoft Teams

First, within Microsoft Teams, select the Teams icon in the left navigation.  Then choose a Team and select the 3 horizontal dots next to the team name.  Once you click the icon, you'll see a popup with an option to Get link to team.  Choose this option.

Tenant Id - Get Link to Microsoft Teams

Once you select 'Get link to team', select the Copy button.  You can paste this link to any text editor.  Included in the URL

Teams tenant id

Once you have the link to your team, it will look similar to this:

https://teams.microsoft.com/l/team/19%3a8f9b982085b440f1a1e34fe53b84dbc4%40thread.skype/conversations?groupId=0efcc002-6001-4a21-991b-8ba10bac0612&tenantId=421c85c3-3791-4b2d-5dd6-6fa64bc1b231

As you can see it includes a groupId parameter.  This is your Microsoft Teams Team id for this Team.  

If you are looking for your Microsoft Teams tenant id which is essentially your account id, you can see the value in your tenantId value above as well.

How to Find Your Channel ID in Microsoft Teams

To find your Teams channel ID we just follow a similar process above to get the link to your team.  

  • Navigate to the channel for which we want to find the channel id
  • Click on the (...) three dots to the right of the channel name
  • Then select the Get link to channel option as in the menu below: 
  • A popup with the link will appear with the channel id mentioned after the path /channel as mentioned in the image below:Select the Copy option in the popup and past the link.  It will look similar to below.  The portion after channel/ in the url and before the next slash is your channel id. 
https://teams.microsoft.com/l/channel/19%3a0b0d1aae685345b28bcc9dda9010cc94%40thread.skype/Support%2520Channel?groupId=0effc003-6001-4a20-991b-8ba10aaf0847&tenantId=421c85d9-3790-4b1d-9dd7-6fa23bc1c668<br>

In our case, the channel id is:  19%3a0b0d1aae685345b28bcc9dda9010cc94%40thread.skype.

Conclusion

To use Graph API we need the Team id and channel id. This can be acquired in multiple ways but if we need it for a specific team and channel it is very easy to fetch it from the Microsoft Teams app as above.