SOLVED

powershell script to add dynamic group to private channel

Brass Contributor

Hi, 

Is it possible to add members using 'Dynamic group' to the private channel on teams? I tried to search for dynamic group in private channel via MS Teams client but I'm not able to find it. However I can find and add the group on Teams. 

Anyone has powershell script to add group on private channel on Teams?

Thanks in advance.

3 Replies
best response confirmed by ThereseSolimeno (Microsoft)
Solution

You cannot add dynamic groups directly, but you can easily "expand" the membership and add each user individually to the private channel.

Thanks @Vasil Michev 

Do you know how to Expand users and add bulk of users using powershell?

Depends on the group type, you will either have to run a query against Exchange Online or Azure AD.

1 best response

Accepted Solutions
best response confirmed by ThereseSolimeno (Microsoft)
Solution

You cannot add dynamic groups directly, but you can easily "expand" the membership and add each user individually to the private channel.

View solution in original post