Forum Discussion

Thomsch's avatar
Thomsch
Iron Contributor
Sep 01, 2021
Solved

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

    • Thomsch's avatar
      Thomsch
      Iron 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 

      • Ezee's avatar
        Ezee
        Copper Contributor
        Hi 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?

Resources