cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
paulbch9
Regular Visitor

Powerapps to manage Teams private channel

Hello,

 

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?


Thanks in advance !


Paul

paulbch9_0-1653982778386.png

Office365Users.SearchUser({searchTerm:ComboBox1.SearchText, top:10})

MicrosoftTeams.AddMemberToTeam("47a41........",ComboBox1.Selected.Id,{owner:Checkbox1.Value})

 

2 REPLIES 2
JimmyWork
Memorable Member
Memorable Member

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

Thanks for your answer, yes I can display the list of channels of the Teams (public and private):

paulbch9_0-1653988157155.png

with : MicrosoftTeams.GetChannelsForGroup("47a413......").value

 

And yes the user/system account a member of the private channel. 

But I don't find a function as Add-TeamChannelUser in PowerApps and I have never used PS so i don't know how to do.

 

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (1,572)