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 (e.g., Box).
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 can also choose which file service will be used by default when users upload files from their local devices by dragging and dropping them in a chat or channel. OneDrive and SharePoint are the existing defaults, but admins can now change it to a third-party app. Teams administrators would be able to create a customized teams files policy to match the organization's requirements.
Available cmdlets
Parameters
| Name | Type | Default value | Accepted values |
|---|---|---|---|
| DefaultFileUploadAppId | String | ||
| FileSharingInChatswithExternalUsers | | ||
| NativeFileEntryPoints | String | ||
| SPChannelFilesTab | String |
Examples
Example 1
Set-CsTeamsFilesPolicy -Identity "CustomOnlineVoicemailPolicy" -NativeFileEntryPoints Disabled/Enabled The command shown in Example 1 changes the teams files policy CustomTeamsFilesPolicy with NativeFileEntryPoints set to Disabled/Enabled.
Example 2
Set-CsTeamsFilesPolicy -DefaultFileUploadAppId GUID_appId The command shown in Example 2 changes the DefaultFileUploadAppId to AppId_GUID for tenant level global teams files policy when calling without Identity parameter.