Forum Discussion
Mitch Crump
Feb 11, 2020Copper Contributor
Get SharePoint Site URL of an individual Microsoft Team
I found the https://office365itpros.com/2019/03/27/finding-sharepoint-urls-teams/. 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....
VasilMichev
Feb 11, 2020MVP
Might help if you give us the exact samples you are running, I don't see any problem with the above.
Mitch Crump
Feb 11, 2020Copper Contributor
VasilMichev I am trying to do something like the two examples below
Get-Team -DisplayName $Team | Select GroupId
$SPOURL = (Get-Team -Identity $Team.GroupId | Select -ExpandProperty SharePointSiteURL)
Get-Team -DisplayName $Team | Select GroupId
$SPOURL = (Get-PnpSite -Identity $Team.GroupId | Select -ExpandProperty SharePointSiteURL)