For a project, I would need to create a PowerApps application that allows to add members in a teams and to select in which private channels you want to add them. I succeeded in the first part to add a list of people to a team with the "AddMemberToTeams" function (see picture). But I can't add them to a specific private channel, do you have an idea?
Not sure, but are u able to list all private channels, and are the user/system account a member of the private channel? The user thats adding the others to the private channel needs to be in that private channel.
The member you are adding then needs to be added to the team first the then private channel. For a channel I don't think you can use the AddMemberToTeam, for example in PS it's Add-TeamChannelUser