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?
- 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.
4 Replies
- Prasad_Das-MSFT
Microsoft
Thomsch Could you please be more elaborate about your query, what exactly you are trying to achieve?
- ThomschIron 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
- EzeeCopper 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?