Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Shared Channels in Teams with "Share this channel with everyone on the team" true/false #618

Open
McoreD opened this issue Jun 1, 2023 · 4 comments
Labels
type:enhancement New feature or enhancement of existing capability

Comments

@McoreD
Copy link

McoreD commented Jun 1, 2023

Hi @PaoloPia thanks for adding Shared Channels support at #591

However, we are trying to automate the following:

image

To implement the effect of the checkBox in the screenshot, there does not seem to be a way.

I look forward to receiving your advice.

@McoreD
Copy link
Author

McoreD commented Jun 3, 2023

On a related note, I tried the following this morning:

All the channels marked for Shared, ended up being created as Standard. Not sure why.

<pnp:Provisioning xmlns:pnp="http://schemas.dev.office.com/PnP/2022/09/ProvisioningSchema"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xsi:schemaLocation="http://schemas.dev.office.com/PnP/2022/09/ProvisioningSchema https://raw.githubusercontent.com/PnP/PnP-Provisioning-Schema/master/PnP.ProvisioningSchema/ProvisioningSchema-2022-09.xsd">

  <pnp:Teams>
    <pnp:Team DisplayName="{parameter:TeamPrefix}-{parameter:ProjectNumber}-{parameter:ProjectAbbreviation}-{parameter:TeamSuffix}"
      Description="IDD Project team for {parameter:ProjectName}"
      HiddenGroupMembershipEnabled="true"
      Visibility="Private"
      MailNickname="{parameter:TeamPrefix}-{parameter:ProjectNumber}-{parameter:ProjectAbbreviation}-{parameter:TeamSuffix}">

      <!-- Member Settings -->
      <pnp:MembersSettings AllowCreateUpdateChannels="false"
        AllowCreatePrivateChannels="false"
        AllowDeleteChannels="false"
        AllowAddRemoveApps="false"
        AllowCreateUpdateRemoveTabs="false"
        AllowCreateUpdateRemoveConnectors="false" />

      <!-- Message Settings -->
      <pnp:MessagingSettings AllowUserEditMessages="true"
        AllowUserDeleteMessages="false"
        AllowOwnerDeleteMessages="false"
        AllowTeamMentions="true"
        AllowChannelMentions="true" />

      <!-- Guest Settings -->
      <pnp:GuestSettings AllowCreateUpdateChannels="false"
        AllowDeleteChannels="false" />

      <!-- Security -->
      <pnp:Security AllowToAddGuests="true">
        <pnp:Owners ClearExistingItems="true">
          <pnp:User UserPrincipalName="[email protected]" />
        </pnp:Owners>
      </pnp:Security>

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

        <!-- Private and Shared Channels -->
        <pnp:Channel DisplayName="Commercial"
          Description=""
          IsFavoriteByDefault="true"
          MembershipType="Shared" />
        <pnp:Channel DisplayName="OnSite"
          Description=""
          IsFavoriteByDefault="true"
          MembershipType="Shared"  />
        <pnp:Channel DisplayName="Procurement"
          Description=""
          IsFavoriteByDefault="true"
          MembershipType="Shared" />
        <pnp:Channel DisplayName="Evaluation-Commercial"
          Description=""
          IsFavoriteByDefault="false"
          MembershipType="Private" />
        <pnp:Channel DisplayName="Evaluation-Qualitative"
          Description=""
          IsFavoriteByDefault="false"
          MembershipType="Private" />
      </pnp:Channels>
    </pnp:Team>
  </pnp:Teams>

</pnp:Provisioning>

@McoreD
Copy link
Author

McoreD commented Jun 5, 2023

Added screenshot to support my post above:
You can see "Commercial" channel is created as a Standard channel although it is set to Shared in the XML.
Monosnap Project_Team xml — Mrwa Teams Procurement Deployment 2023-06-05 13-05-32

@svenspointofview
Copy link

Hi @McoreD, I ran into the same issue, any chance you resolved this?

@McoreD
Copy link
Author

McoreD commented Sep 19, 2023

Hi @McoreD, I ran into the same issue, any chance you resolved this?

Unfortunately not yet. I believe the developers need to support this for it to work.

@PaoloPia PaoloPia added the type:enhancement New feature or enhancement of existing capability label Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement New feature or enhancement of existing capability
Projects
None yet
Development

No branches or pull requests

3 participants