Skip to content

Commit b3b7f32

Browse files
Merge pull request #11894 from mayurkl100/patch-7
Create New-CsTeamsFilesPolicy.md
2 parents 0645677 + f5b19ab commit b3b7f32

File tree

1 file changed

+100
-0
lines changed

1 file changed

+100
-0
lines changed
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
---
2+
external help file: Microsoft.Teams.Policy.Administration.Cmdlets.Core.dll-Help.xml
3+
Module Name: MicrosoftTeams
4+
online version: https://learn.microsoft.com/powershell/module/teams/new-csteamsfilespolicy
5+
schema: 2.0.0
6+
---
7+
8+
# New-CsTeamsFilesPolicy
9+
10+
## SYNOPSIS
11+
Creates a new teams files policy.
12+
teams files policies determine whether or not files entry points to sharepoint enabled for a user.
13+
The policies also specify third party app id to allow file storage(eg. Box).
14+
15+
## SYNTAX
16+
17+
```
18+
New-CsTeamsFilesPolicy [-NativeFileEntryPoints <String>] [-DefaultFileUploadAppId <String>]
19+
[-Identity] <String> [<CommonParameters>]
20+
```
21+
22+
## DESCRIPTION
23+
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.
24+
Teams administrators would be able to create a customized teams files policy to match the organization's requirements.
25+
26+
## EXAMPLES
27+
28+
### Example 1
29+
```
30+
New-CsTeamsFilesPolicy -Identity "CustomTeamsFilesPolicy" -NativeFileEntryPoints Disabled/Enabled
31+
```
32+
33+
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.
34+
35+
## PARAMETERS
36+
37+
### -Identity
38+
A unique identifier specifying the scope, and in some cases the name, of the policy.
39+
40+
```yaml
41+
Type: String
42+
Parameter Sets: (All)
43+
Aliases:
44+
45+
Required: True
46+
Position: 1
47+
Default value: None
48+
Accept pipeline input: False
49+
Accept wildcard characters: False
50+
```
51+
52+
### -NativeFileEntryPoints
53+
This parameter is enabled by default, which shows the option to upload content from ODSP to Teams chats or channels. .
54+
Possible values are Enabled or Disabled.
55+
```yaml
56+
Type: String
57+
Parameter Sets: (All)
58+
Aliases:
59+
60+
Required: False
61+
Position: Named
62+
Default value: None
63+
Accept pipeline input: False
64+
Accept wildcard characters: False
65+
66+
```
67+
### -DefaultFileUploadAppId
68+
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.
69+
70+
```yaml
71+
Type: String
72+
Parameter Sets: (All)
73+
Aliases:
74+
75+
Required: False
76+
Position: Named
77+
Default value: None
78+
Accept pipeline input: False
79+
Accept wildcard characters: False
80+
```
81+
82+
### CommonParameters
83+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
84+
85+
## INPUTS
86+
87+
## OUTPUTS
88+
89+
## NOTES
90+
91+
## RELATED LINKS
92+
93+
[Get-CsTeamsFilesPolicy]()
94+
95+
[Set-CsTeamsFilesPolicy]()
96+
97+
[Remove-CsTeamsFilesPolicy]()
98+
99+
[Grant-CsTeamsFilesPolicy]()
100+

0 commit comments

Comments
 (0)