Forum Discussion
Thomsch
Sep 01, 2021Iron Contributor
Trigger when private channels are created
I'm restricting the SharePoint sites of Teams private channels via Powershell. Right now I schedule the execution of my powershell script every 5 minutes. Is there any trigger that I can use?
- Sep 15, 2021As per my understanding there is no such event via which you can trigger the PowerShell script when new private channel is created.
Thanks,
Prasad Das
-------------------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link.
Prasad_Das-MSFT
Microsoft
Sep 02, 2021Thomsch Could you please be more elaborate about your query, what exactly you are trying to achieve?
Thomsch
Sep 08, 2021Iron Contributor
I'm adapting the SharePoint sites of private Channels to read only for Team owners and members. I can do this via a scheduled PowerShell script every ie 5min or I'd like to do it triggered as soon as a new private channel is created. Thanks in advance. Prasad_Das-MSFT
- EzeeOct 13, 2022Copper ContributorHi Thomsch, I'd really like to achieve the same, detect new private channels and configure, Please can you kindly you script and how you've set up?
- Prasad_Das-MSFTSep 15, 2021
Microsoft
As per my understanding there is no such event via which you can trigger the PowerShell script when new private channel is created.
Thanks,
Prasad Das
-------------------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link.