Forum Discussion
phil_tannay
Mar 07, 2025Copper Contributor
When creating a new team from a template with powershell add new private channel and members
Hi All, I have a powershell script I am using to create and populate new teams from a template and add owners and users via .csv, Everything seem to work fine except the private team in the templat...
Benjamin_Fore
May 01, 2025Copper Contributor
I'm guessing private channels aren't included in the clone. But you could get the originals and copy the info to a new channel in the new team starting with
Get-MgTeamChannel -TeamId $teamId -Filter "membershipType eq 'private'"
On a related note, a similar Team clone script we use has been failing to duplicate channel tabs. Does your template team have tabs beyond the default? If so, are they still being duplicated? (Trying to narrow this down, and am not finding many people at all using Team clone/copy.)