MS Teams Graph API - get Team ID



I am trying to create MS Teams using Graph API and I wants get Team Id after it is created. However I can't find this properties in MS Teams Graph API.

Please advise if this feature available in Graph API. Sample code will be very helpful. Thanks.


Following is the response JSON


HTTP/1.1 201 Created
Content-type: application/json
Content-length: 401

"memberSettings": {
"allowCreateUpdateChannels": true,
"allowDeleteChannels": true,
"allowAddRemoveApps": true,
"allowCreateUpdateRemoveTabs": true,
"allowCreateUpdateRemoveConnectors": true
"guestSettings": {
"allowCreateUpdateChannels": true,
"allowDeleteChannels": true
"messagingSettings": {
"allowUserEditMessages": true,
"allowUserDeleteMessages": true,
"allowOwnerDeleteMessages": true,
"allowTeamMentions": true,
"allowChannelMentions": true
"funSettings": {
"allowGiphy": true,
"giphyContentRating": "strict",
"allowStickersAndMemes": true,
"allowCustomMemes": true



11 Replies

Hi! You can use:


GET   https://graph.microsoft.com/v1.0/me/joinedTeams


This will get you following output:


"id": "401edf43-0a95-4b82-a242-108cv3dte7fb",
"displayName": "Acme Demo",

"description": "Let´s use this Group for discussions and resources for the Project."

"isArchived": false

Also listing all teams with graph:




/ Adam

You can also get the ID via the "teams and skype admin center" -> click teams -> click a team you want id for then check the URL for the id:





/ Adam





What part of the URL is the ID?
After the manage part:
A similar team id might look like this:


@adam deltinger When I click on a specific team, I do not see the url in the format you shared.
When a channel in a team is selected, url looks like https://teams.microsoft.com/_#/conversations/1.%20Primary%20-%20Emerging%20Issues?threadId=19:1bf0c7...

Can you please help how can I find the team Id as well as Channel Id?
I am a member of this team but not an admin.

But If youvarw a teams admin you can get it by the various ways I mentioned above

@adam deltinger Thanks for you reply.
Just wanted to confirm that only Admin has access to Team Id and Channel Id?
If I want to use the get messages API: GET https://graph.microsoft.com/beta/teams/{id}/channels/{id}/messages,
I need to be Team Admin or get the Team Id and Channel Id from Team admin. The team members do not have access to that information. Is that correct?

No, they can! I believe they can just login to graph explorer , log in and run get my joined teams for example!

Also, anyone can just click the three dots next to a team - get link to team and in that link there is the team id


@adam deltinger Thanks. :smileyhappy:

You have to parse Location header that you get back. It has structure Location: /teams('teamId')/operations('operationId')