New-CsTeamsChannelsPolicy

The CsTeamsChannelsPolicy allows you to manage features related to the Teams & Channels experience within the Teams application.

Syntax

New-CsTeamsChannelsPolicy
   [-Tenant <Guid>]
   [-AllowOrgWideTeamCreation <Boolean>]
   [-AllowPrivateTeamDiscovery <Boolean>]
   [-AllowPrivateChannelCreation <Boolean>]
   [-Identity] <XdsIdentity>
   [-InMemory]
   [-Force]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

The CsTeamsChannelsPolicy allows you to manage features related to the Teams & Channels experience within the Teams application.

This cmdlet allows you to create new policies of this type, which can later be assigned to specific users.

Examples

Example 1

PS C:\> New-CsTeamsChannelsPolicy -Identity StudentPolicy -AllowPrivateTeamDiscovery $false

This example shows creating a new policy with name "StudentPolicy" where Private Team Discovery is disabled.

Parameters

-AllowOrgWideTeamCreation

Determines whether a user is allowed to create an org-wide team. Set this to TRUE to allow. Set this FALSE to prohibit.

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-AllowPrivateChannelCreation

Determines whether a user is allowed to create a private channel. Set this to TRUE to allow. Set this FALSE to prohibit.

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-AllowPrivateTeamDiscovery

Determines whether a user is allowed to discover private teams in suggestions and search results. Set this to TRUE to allow. Set this FALSE to prohibit.

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Force

Bypasses all non-fatal errors.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Identity

Specify the name of the policy that you are creating.

Type:String
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Tenant

Internal Microsoft use only.

Type:System.Guid
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

System.Object