How many Teams I have in my Office 365 Tenant?

Giuliano De Luca | Blog |

Collecting the complete list of teams in your Tenant is something that you need to do, monitor, keep track or apply some customization to the existing collection of Microsoft Teams. The reasons could be various, but the ability to have a summary is, in fact, an added value in terms of functionality.

Microsoft Graph API to the rescue

The robust set of Graph API provided by Microsoft is growing always more, in fact, it’s interesting to explore the beta version to see what is coming. Some time ago I had the requirement to collect the list of Office 365 groups that had teams. I opened immediately the documentations in beta version of Graph API and I discovered the following OData Query:

GET /groups?$filter=resourceProvisioningOptions/Any(x:x eq 'Team')

Check here to check the documentation

Microsoft has used this property resourceProvisioningOptions to mark a group with a team, unfortunately, this property is not present in old teams which will be not displayed in the result of the Graph API query. In any case, in the future this gap will be filled with the enhancement of this property also for the old teams created.

About the Author:


I’m an Office Development MVP and specialist in Microsoft technologies for software design and development. I love to collaborate with the community, I passed several Microsoft certification exams and achieved the following certifications: MCSD Sharepoint ApplicationsMCSD Web Applications, MCP, Microsoft Specialist Programming in HTML5 with JavaScript and CSS3 Specialist.
In my free time I love to play and exploring the new technologies.

De Luca, G. (2019). How many Teams I have in my Office 365 Tenant?Available at: [Accessed: 6th February 2020].

Check out more great Microsoft Teams content here or join our mailing list to stay up to date.

Share this on...

Rate this Post: