Skip to content

Commit 9a8074a

Browse files
authored
Create New-CsTeamsFilesPolicy.md
1 parent 0b72948 commit 9a8074a

File tree

1 file changed

+164
-0
lines changed

1 file changed

+164
-0
lines changed
Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
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> [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]
20+
```
21+
22+
## DESCRIPTION
23+
Teams files provides organizations with different files capabilities.
24+
25+
Microsoft Teams uses OneDrive and SharePoint (ODSP) to store and share content, but some organizations and users might prefer to use third-party storage providers.
26+
27+
If your organization chooses a third-party for content storage, you need to turn off the ``NativeFileEntryPoints`` parameter in the Teams Files policy. This parameter is enabled by default, which shows the option to upload content from ODSP to Teams chats or channels.
28+
Tenant admin would be able to create a customized teams files policy to match the organization's requirements.
29+
30+
## EXAMPLES
31+
32+
### Example 1
33+
```
34+
New-CsTeamsFilesPolicy -Identity "CustomTeamsFilesPolicy" -NativeFileEntryPoints Disabled/Enabled
35+
```
36+
37+
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.
38+
39+
## PARAMETERS
40+
41+
### -Identity
42+
A unique identifier specifying the scope, and in some cases the name, of the policy.
43+
44+
```yaml
45+
Type: String
46+
Parameter Sets: (All)
47+
Aliases:
48+
49+
Required: True
50+
Position: 1
51+
Default value: None
52+
Accept pipeline input: False
53+
Accept wildcard characters: False
54+
```
55+
56+
### -NativeFileEntryPoints
57+
This parameter is enabled by default, which shows the option to upload content from ODSP to Teams chats or channels. .
58+
Possible values are Enabled or Disabled.
59+
```yaml
60+
Type: String
61+
Parameter Sets: (All)
62+
Aliases:
63+
64+
Required: False
65+
Position: Named
66+
Default value: None
67+
Accept pipeline input: False
68+
Accept wildcard characters: False
69+
70+
```
71+
### -DefaultFileUploadAppId
72+
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.
73+
74+
```yaml
75+
Type: String
76+
Parameter Sets: (All)
77+
Aliases:
78+
79+
Required: False
80+
Position: Named
81+
Default value: None
82+
Accept pipeline input: False
83+
Accept wildcard characters: False
84+
```
85+
86+
### -WhatIf
87+
Describes what would happen if you executed the command without actually executing the command.
88+
89+
```yaml
90+
Type: SwitchParameter
91+
Parameter Sets: (All)
92+
Aliases: wi
93+
94+
Required: False
95+
Position: Named
96+
Default value: False
97+
Accept pipeline input: False
98+
Accept wildcard characters: False
99+
```
100+
101+
### -Confirm
102+
Prompts you for confirmation before executing the command.
103+
104+
```yaml
105+
Type: SwitchParameter
106+
Parameter Sets: (All)
107+
Aliases: cf
108+
109+
Required: False
110+
Position: Named
111+
Default value: False
112+
Accept pipeline input: False
113+
Accept wildcard characters: False
114+
```
115+
116+
### -Description
117+
{{ Fill Description Description }}
118+
119+
```yaml
120+
Type: String
121+
Parameter Sets: (All)
122+
Aliases:
123+
124+
Required: False
125+
Position: Named
126+
Default value: None
127+
Accept pipeline input: False
128+
Accept wildcard characters: False
129+
```
130+
131+
### -Force
132+
{{ Fill Force Description }}
133+
134+
```yaml
135+
Type: SwitchParameter
136+
Parameter Sets: (All)
137+
Aliases:
138+
139+
Required: False
140+
Position: Named
141+
Default value: None
142+
Accept pipeline input: False
143+
Accept wildcard characters: False
144+
```
145+
146+
### CommonParameters
147+
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).
148+
149+
## INPUTS
150+
151+
## OUTPUTS
152+
153+
## NOTES
154+
155+
## RELATED LINKS
156+
157+
[Get-CsTeamsFilesPolicy]()
158+
159+
[Set-CsTeamsFilesPolicy]()
160+
161+
[Remove-CsTeamsFilesPolicy]()
162+
163+
[Grant-CsTeamsFilesPolicy]()
164+

0 commit comments

Comments
 (0)