Skip to content

Commit afe8ad1

Browse files
authored
Merge pull request #11892 from mayurkl100/patch-5
Create Grant-CsTeamsFilesPolicy.md
2 parents 43c04ce + 8e984a4 commit afe8ad1

File tree

1 file changed

+129
-0
lines changed

1 file changed

+129
-0
lines changed
Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
---
2+
external help file: MicrosoftTeams-help.xml
3+
Module Name: MicrosoftTeams
4+
online version: https://learn.microsoft.com/powershell/module/teams/grant-csteamsfilespolicy
5+
schema: 2.0.0
6+
---
7+
8+
# Grant-CsTeamsFilesPolicy
9+
10+
## SYNOPSIS
11+
Assigns an online teams files policy to a user account, to a group of users, or set the tenant Global instance.
12+
Online teams files policies manage usages of files-related features.
13+
14+
## SYNTAX
15+
16+
### GrantToTenant (Default)
17+
```
18+
Grant-CsTeamsFilesPolicy [-Global] [[-PolicyName] <String>]
19+
20+
```
21+
22+
### GrantToGroup
23+
```
24+
Grant-CsTeamsFilesPolicy [[-PolicyName] <String>] [-Group] <String>
25+
```
26+
27+
### Identity
28+
```
29+
Grant-CsTeamsFilesPolicy [[-PolicyName] <String>] [-Identity <String>]
30+
```
31+
32+
## DESCRIPTION
33+
This cmdlet assigns an existing user-specific online teams files policy to a user, a group of users, or the Global policy instance.
34+
35+
## EXAMPLES
36+
37+
### Example 1
38+
```
39+
Grant-CsTeamsFilesPolicy -Identity "[email protected]" -PolicyName NativeEntrypointDisabled
40+
```
41+
42+
The command shown in Example 1 assigns the per-user online teams files policy NativeEntrypointDisabled to a single user [email protected].
43+
44+
### Example 2
45+
```
46+
Grant-CsTeamsFilesPolicy -Group [email protected] -PolicyName NativeEntrypointDisabled
47+
```
48+
49+
The command shown in Example 2 assigns the online teams files policy NativeEntrypointDisabled to the members of the group [email protected].
50+
51+
## PARAMETERS
52+
53+
### -Global
54+
Sets the parameters of the Global policy instance to the values in the specified policy instance.
55+
56+
```yaml
57+
Type: SwitchParameter
58+
Parameter Sets: GrantToTenant
59+
Aliases:
60+
61+
Required: False
62+
Position: Named
63+
Default value: None
64+
Accept pipeline input: False
65+
Accept wildcard characters: False
66+
```
67+
68+
### -PolicyName
69+
A unique identifier(name) of the policy.
70+
71+
```yaml
72+
Type: String
73+
Parameter Sets: (All)
74+
Aliases:
75+
76+
Required: False
77+
Position: 1
78+
Default value: None
79+
Accept pipeline input: False
80+
Accept wildcard characters: False
81+
```
82+
83+
### -Group
84+
Specifies the group used for the group policy assignment.
85+
86+
```yaml
87+
Type: String
88+
Parameter Sets: GrantToGroup
89+
Aliases:
90+
91+
Required: True
92+
Position: 0
93+
Default value: None
94+
Accept pipeline input: False
95+
Accept wildcard characters: False
96+
```
97+
98+
### -Identity
99+
The Identity parameter represents the ID of the specific user in your organization; this can be either a SIP address or an Object ID.
100+
101+
```yaml
102+
Type: String
103+
Parameter Sets: Identity
104+
Aliases:
105+
106+
Required: False
107+
Position: Named
108+
Default value: None
109+
Accept pipeline input: True (ByPropertyName, ByValue)
110+
Accept wildcard characters: False
111+
```
112+
113+
## INPUTS
114+
115+
## OUTPUTS
116+
117+
## NOTES
118+
The GrantToGroup syntax is supported in Teams PowerShell Module 4.5.1-preview or later.
119+
120+
## RELATED LINKS
121+
122+
[Get-CsTeamsFilesPolicy]()
123+
124+
[Set-CsTeamsFilesPolicy]()
125+
126+
[New-CsTeamsFilesPolicy]()
127+
128+
[Remove-CsTeamsFilesPolicy]()
129+

0 commit comments

Comments
 (0)