Skip to content

Commit 9bb60d9

Browse files
committed
Add GrantToGroup example
1 parent d2139ba commit 9bb60d9

File tree

1 file changed

+49
-2
lines changed

1 file changed

+49
-2
lines changed

teams/teams-ps/teams/Grant-CsTeamsMediaLoggingPolicy.md

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,13 @@ Grant-CsTeamsMediaLoggingPolicy [[-Identity] <String>] [-PassThru] [[-PolicyName
2828
### GrantToTenant
2929

3030
```
31-
Grant-CsTeamsMediaLoggingPolicy [-PassThru] [[-PolicyName] <String>]
32-
[-Global] [-WhatIf] [-Confirm] [<CommonParameters>]
31+
Grant-CsTeamsMediaLoggingPolicy [-PassThru] [[-PolicyName] <String>] [-Global] [-WhatIf] [-Confirm] [<CommonParameters>]
32+
```
33+
34+
### GrantToGroup
35+
36+
```
37+
Grant-CsTeamsMediaLoggingPolicy [-PassThru] [[-PolicyName] <String>] [-Group] <String> [-Rank <Int32>] [-WhatIf] [-Confirm] [<CommonParameters>]
3338
```
3439

3540
## DESCRIPTION
@@ -71,6 +76,14 @@ PS C:\> Grant-CsTeamsMediaLoggingPolicy -Global -PolicyName $null
7176

7277
Unassign Teams Media Logging policy from the entire tenant.
7378

79+
### EXAMPLE 5
80+
81+
```PowerShell
82+
PS C:\> Grant-CsTeamsMediaLoggingPolicy -Group 8cc8447a-2e99-4184-a413-7c83e2e489c7 -PolicyName Enabled -Rank 10
83+
```
84+
85+
Assign Teams Media Logging policy to a group of users.
86+
7487
## PARAMETERS
7588

7689
### -Identity
@@ -154,6 +167,40 @@ Accept pipeline input: False
154167
Accept wildcard characters: False
155168
```
156169

170+
### -Group
171+
172+
Specifies the group used for the group policy assignment.
173+
174+
```yaml
175+
Type: String
176+
Parameter Sets: GrantToGroup
177+
Aliases:
178+
Applicable: Microsoft Teams, Skype for Business Online
179+
180+
Required: True
181+
Position: 0
182+
Default value: None
183+
Accept pipeline input: False
184+
Accept wildcard characters: False
185+
```
186+
187+
### -Rank
188+
189+
The rank of the policy assignment, relative to other group policy assignments for the same policy type.
190+
191+
```yaml
192+
Type: Int32
193+
Parameter Sets: GrantToGroup
194+
Aliases:
195+
Applicable: Microsoft Teams, Skype for Business Online
196+
197+
Required: False
198+
Position: Named
199+
Default value: None
200+
Accept pipeline input: False
201+
Accept wildcard characters: False
202+
```
203+
157204
### -WhatIf
158205

159206
Shows what would happen if the cmdlet runs.

0 commit comments

Comments
 (0)