Hi @Expiscornovus
Exactly, I know that there are several methods available and interestingly also an unshare functionality. But not to share...
For curiosity I checked the PowerShell Graph Modul and what a suprise it seems there are Graph commands available to share it with the team.
PS C:\WINDOWS\system32> Find-MgGraphCommand -command New-MgTeamChannelSharedWithTeam
APIVersion: v1.0
Command Module Method URI OutputType Permissions
------- ------ ------ --- ---------- ----
New-MgTeamChannelSharedWithTeam Teams POST /teams/{team-id}/channels/{channel-id}/sharedWithTeams IMicrosoftGraphSharedWithChannelTeamInfo {}
APIVersion: beta
Command Module Method URI OutputType Per
mis
sio
ns
------- ------ ------ --- ---------- ---
New-MgTeamChannelSharedWithTeam Teams POST /teams/{team-id}/channels/{channel-id}/sharedWithTeams IMicrosoftGraphSharedWithChannelTeamInfo1 {}
When I try the POST url in Graph (e.g. Graph Explorer) directly, I get the response that the path is invalid. 😞
I thought first is the Graph API and the PowerShell Graph API is automatically generated.
Somehow it seems not fully implemented.