Check if a SharePoint site has a Microsoft Team associated to it using PowerShell PnP

First post of 2021, and in this brief post, we’re going to see how we can check if our SharePoint Online sites have a Microsoft Teams team associated to it.
Why is it brief? Because PowerShell PnP is making it very easy! 🤩

From now on, we’re also going to focus on the new PnP PowerShell module available for PowerShell Core. This is the module we’re familiar with, but available on Windows, MacOS, or Linux!

Alright, let’s start.



[UPDATE March 14th 2021] – The -Scopesparameter is now marked obsolete. Please refer to the documentation and file under the version [1.4.0]:
Added All Graph permissions and all SharePoint permissions for selection to Register-PnPAzureADApp

Get the results in ONE command

Now’s the time to run the magic command: Get-PnPMicrosoft365Group -IncludeHasTeam | Format-List

And boom! 🧨  We have it!


Told you it was going to be a quick and efficient one!

Thanks for reading 🙂




Leave a Reply

%d bloggers like this: