Skip to content

Commit 81c613b

Browse files
Merge pull request #11895 from mayurkl100/patch-8
Create Set-CsTeamsFilesPolicy.md
2 parents dcad05b + 7a3e0e5 commit 81c613b

File tree

1 file changed

+168
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)