Forum Discussion
AlistairKeay1
Aug 14, 2023Brass Contributor
Teams Shared Channel PowerShell, Retrieve Members and Teams
I can retrieve the members of a shared channel via Get-TeamChannelUser -GroupId <> -DisplayName <> However when sharing a shared channel there is the option to "share with a team" (which you co...
- Aug 15, 2023
AlistairKeay1 to retrieve the list of teams a for a shared channel, use the Get-SharedWithTeam command
For example,
Get-SharedWithTeam -HostTeamId id-of-the-team-that-created-the-shared-channel -ChannelId id-of-the-shared-channel
It will return the teams that shared channel is shared with
Also, you can see all the Shared Channels that are shared with a specific team (the reverse lookup of what you are doing) via Get-TeamAllChannel cmlet
Carl_Karawani
Brass Contributor
AlistairKeay1 to retrieve the list of teams a for a shared channel, use the Get-SharedWithTeam command
For example,
Get-SharedWithTeam -HostTeamId id-of-the-team-that-created-the-shared-channel -ChannelId id-of-the-shared-channel
It will return the teams that shared channel is shared with
Also, you can see all the Shared Channels that are shared with a specific team (the reverse lookup of what you are doing) via Get-TeamAllChannel cmlet
AlistairKeay1
Aug 15, 2023Brass Contributor
Perfect _ thanks Karl