When browsing to your Microsoft SharePoint online admin center you do not see all sharepoint sites like ones created by Yammer, Teams etc.
This can lead you to issues creating new sharepoint sites because the name was already user by another setup in Yammer or Teams.
The only way to see all SharePoint sites is PowerShell.
For the first time, you will need to install powershell administration tools:
- SharePoint Online Management Shell : https://www.microsoft.com/fr-be/download/details.aspx?id=35588
- MS Online PowerShell for Azure Active Directory : https://www.powershellgallery.com/packages/MSOnline/184.108.40.206
The second one can be installed directly from within powershell on the latest versions:
- You will be prompted to install the NuGet provider if this is the first time you're using it.
- You will then be prompted to trust the PSGallery repository for this installation
Connect to your Microsoft Tenant
Now you have required modules, we will connect to Microsoft Online and then to the Sharepoint Online part.
$credential = get-credential import-module msonline Connect-MsolService -credential $credential Connect-SPOService -url https://[YourTenant]-admin.sharepoint.com -credential $credential
Work with the Sharepoint Online Sites
Now you can simply check all sites under your tenant by typing get-sposite command:
You can see much more sites and can start working with them.
Use cases and conclusions
- You may want to restrict Microsoft 365 group creation to a defined group of users to avoid "radomly" created SharePoint sites.
- This article is based of the blog article of Mike Baker concerning issues about managing SharePoint sites