Forum Discussion
elaheh
Jun 23, 2020Brass Contributor
powershell script to add dynamic group to private channel
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.
You cannot add dynamic groups directly, but you can easily "expand" the membership and add each user individually to the private channel.
You cannot add dynamic groups directly, but you can easily "expand" the membership and add each user individually to the private channel.
- elahehBrass Contributor
Thanks VasilMichev
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.