How to get Teams private channels SharePoint site URL's and ID's via PowerShell?

Vinod Survase 4,781 Reputation points
2022-02-02T17:20:48.607+00:00

How to get Teams private channels SharePoint site URL's and ID's via PowerShell?

Microsoft 365 and Office | SharePoint | For business | Windows
Microsoft Teams | Microsoft Teams for business | Other
0 comments No comments
{count} votes

Accepted answer
  1. Yuki Sun-MSFT 41,376 Reputation points Moderator
    2022-02-03T02:08:18.54+00:00

    Hi @Vinod Survase ,

    To get the IDs of a team's private channels, we can run the Get-TeamChannel command below:

    Get-Team -DisplayName <TeamName> | Get-TeamChannel -MembershipType private  
    

    170716-1.png

    But when it comes to the private channels SharePoint site URLs, as far as I know, there's no powershell commands for it and per my research you can use Graph APIs commands to query these URLs. For more information, see:
    Find SharePoint URLs for all private channels in a team

    Then please understand that the "office-teams-windows-itpro" tag is for general questions related to the Teams client, if regarding the SharePoint site URLs, you would like further assistance about Graph API, it's suggested to start a new thread by adding the “microsoft-graph-teams” tag for help. Thanks for your understanding.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.