Skip to content

Commit bd9cf03

Browse files
authored
Create Set-CsTeamsFilesPolicy.md
1 parent 0b72948 commit bd9cf03

File tree

1 file changed

+172
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)