Forum Discussion
Mitch Crump
Feb 11, 2020Copper Contributor
Get SharePoint Site URL of an individual Microsoft Team
I found the below code online. I want to use the same concept but only return one SP site URL so I can use the URL to create a folder in that Team. $Teams = (Get-Team |Select GroupId, DisplayNa...
Dr_A_Wells
Copper Contributor
$teamMailNickName = (get-team -displayname "Name of Team").mailnickname
$TeamURL = "https://Name_of_Tenancy.sharepoint.com/sites/" + $teamMailNIckName
Tom__B
Mar 21, 2024Copper Contributor
The MailNickName of a team can be updated with PowerShell, thus the TeamURL no longer matches this schema `$TeamURL = "https://Name_of_Tenancy.sharepoint.com/sites/" + $teamMailNickName`.
The SharePoint site URL of a Team can also be updated independently.
The SharePoint site URL of a Team can also be updated independently.