pnp / PnP-Provisioning-Schema

Office 365 Patterns and Practices - Remote Provisioning Schema
MIT License
159 stars 220 forks source link

Create Shared Channels in Teams #591

Closed McoreD closed 2 years ago

McoreD commented 2 years ago

Hey guys,

We have automated creation of Standard and Private Channels using the templates below:

   <pnp:Channels>
        <!-- Standard Channels -->
        <pnp:Channel DisplayName="Communications"
          Description=""
          IsFavoriteByDefault="false" />
       <pnp:Channel DisplayName="Develop"
          Description=""
          IsFavoriteByDefault="false" />
        <pnp:Channel DisplayName="Meetings"
          Description=""
          IsFavoriteByDefault="false" />
        <pnp:Channel DisplayName="Program"
          Description=""
          IsFavoriteByDefault="false" />

        <!-- Private Channels -->
        <pnp:Channel DisplayName="Commercial"
          Description=""
          IsFavoriteByDefault="false"
          Private="true" />
        <pnp:Channel DisplayName="Contract"
          Description=""
          IsFavoriteByDefault="false"
          Private="true" />
        <pnp:Channel DisplayName="Procurement"
          Description=""
          IsFavoriteByDefault="false"
          Private="true" />
        <pnp:Channel DisplayName="Evaluation"
          Description=""
          IsFavoriteByDefault="false"
          Private="true" />
      </pnp:Channels>

Similary, how could you create Shared Channels please? I tried to look for examples everywhere, but could not land on a valid one.

Thanks, Michael

PaoloPia commented 2 years ago

Hi, Thanks for your feedback. We're going to introduce support for shared channels in the next release of the provisioning schema and engine.

McoreD commented 2 years ago

Hi @PaoloPia, this is excellent news. Thanks for taking your time to respond to me. We are developing a PowerShell script to automate Team creation in our corporation. Are you able to provide any indicative time as to when - next year? by end of this year etc.? Noting the last update was March 2021, I am wary that it could be in some time. Thanks.

I would also like to think out loud a bit in terms of the upcoming implementation.

Since Shared Channels can be created with or without access to existing members of the Parent Team, it would make sense to make use of the existing: Private="true" when "Share this channel with everyone on the team checkBox is disabled.

Logically, if you add support for the following, then we got more capability: Shared="true"

The following will create a private Shared Channel when the "Share this channel with everyone on the team" checkBox is disabled:

        <pnp:Channel DisplayName="Evaluation"
          Description=""
          IsFavoriteByDefault="false"
          Shared="true"
          Private="true" />

In summary, I hope the following will be possible:

Shared (true) Shared (false) Shared (not in xml)
Private (true) Private Shared Channel Private Channel Private Channel
Private (false) Shared Channel (everyone on the team can access) Standard Channel Standard Channel
Private (not in xml) Shared Channel (everyone on the team can access) Standard Channel Standard Channel

Thanks for listening!

McoreD commented 2 years ago

Hi @PaoloPia just checking if you saw my post above :)

McoreD commented 1 year ago

Hi @PaoloPia ,

Thanks for adding Shared Channels support. We are trying to automate the following:

image

To implement the effect of the checkBox in the screenshot, would the Private boolean work?

       <pnp:Channel DisplayName="Develop"
                    Description=""
                    IsFavoriteByDefault="true"
                    MembershipType="Shared" 
                    Private="true" />

Thanks.

McoreD commented 1 year ago

@PaoloPia it looks like MembershipType="Shared" is the only thing supported. Private="true" is not supported. We need the following checkBox automated: image I look forward to receiving your advice.