Bearbeiten

Freigeben über


New-CsTeamsFilesPolicy

Creates a new teams files policy. teams files policies determine whether or not files entry points to sharepoint enabled for a user. The policies also specify third party app id to allow file storage(eg. Box).

Syntax

New-CsTeamsFilesPolicy
   [-NativeFileEntryPoints <String>]
   [-DefaultFileUploadAppId <String>]
   [-Identity] <String>
   [<CommonParameters>]

Description

If your organization chooses a third-party for content storage, you can turn off the NativeFileEntryPoints parameter in the Teams Files policy. This parameter is enabled by default, which shows option to attach OneDrive / SharePoint content from Teams chats or channels. When this parameter is disabled, users won't see access points for OneDrive and SharePoint in Teams. Please note that OneDrive app in the left navigation pane in Teams isn't affected by this policy. Teams administrators would be able to create a customized teams files policy to match the organization's requirements.

Examples

Example 1

New-CsTeamsFilesPolicy -Identity "CustomTeamsFilesPolicy" -NativeFileEntryPoints Disabled/Enabled

The command shown in Example 1 creates a per-user teams files policy CustomTeamsFilesPolicy with NativeFileEntryPoints set to Disabled/Enabled and other fields set to tenant level global value.

Parameters

-DefaultFileUploadAppId

This can be used by the 3p apps to configure their app, so when the files will be dragged and dropped in compose, it will get uploaded in that 3P app.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Identity

A unique identifier specifying the scope, and in some cases the name, of the policy.

Type:String
Position:1
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-NativeFileEntryPoints

This parameter is enabled by default, which shows the option to upload content from ODSP to Teams chats or channels. . Possible values are Enabled or Disabled.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False