Skip to content

Commit d7f63d7

Browse files
authored
Merge branch 'master' into patch-228
2 parents 371105f + c5a7516 commit d7f63d7

6 files changed

+130
-25
lines changed

teams/teams-ps/teams/Get-CsPolicyPackage.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
---
22
external help file: Microsoft.TeamsCmdlets.PowerShell.Custom.dll-Help.xml
33
Module Name: MicrosoftTeams
4-
applicable: Microsoft Teams
54
title: Get-CsPolicyPackage
6-
author: etgottli
7-
ms.author: etgottli
8-
ms.reviewer: icchan
5+
author: icchan
6+
ms.author: icchan
97
manager: amitar
108
online version: https://docs.microsoft.com/powershell/module/teams/get-cspolicypackage
119
schema: 2.0.0
@@ -26,7 +24,7 @@ Get-CsPolicyPackage [[-Identity] <String>] [<CommonParameters>]
2624
## DESCRIPTION
2725

2826
This cmdlet supports retrieving all the policy packages available on a tenant. Provide the identity of a specific policy package to retrieve its definition, including details on the policies applied with the package.
29-
For more information on policy packages, please review https://docs.microsoft.com/en-us/MicrosoftTeams/manage-policy-packages
27+
For more information on policy packages, please review https://docs.microsoft.com/MicrosoftTeams/manage-policy-packages.
3028

3129
## EXAMPLES
3230

teams/teams-ps/teams/Get-CsUserPolicyPackage.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
---
22
external help file: Microsoft.TeamsCmdlets.PowerShell.Custom.dll-Help.xml
33
Module Name: MicrosoftTeams
4-
applicable: Microsoft Teams
54
title: Get-CsUserPolicyPackage
65
author: icchan
76
ms.author: icchan
8-
ms.reviewer: etgottli
97
manager: amitar
108
online version: https://docs.microsoft.com/powershell/module/teams/get-csuserpolicypackage
119
schema: 2.0.0
@@ -26,7 +24,7 @@ Get-CsUserPolicyPackage [-Identity] <String> [<CommonParameters>]
2624
## DESCRIPTION
2725

2826
This cmdlet supports retrieving the policy package that's assigned to a user. Provide the identity of a user to retrieve the definition of their assigned policy package.
29-
For more information on policy packages, please review https://docs.microsoft.com/en-us/MicrosoftTeams/manage-policy-packages
27+
For more information on policy packages, please review https://docs.microsoft.com/MicrosoftTeams/manage-policy-packages.
3028

3129
## EXAMPLES
3230

teams/teams-ps/teams/Get-CsUserPolicyPackageRecommendation.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
---
22
external help file: Microsoft.TeamsCmdlets.PowerShell.Custom.dll-Help.xml
33
Module Name: MicrosoftTeams
4-
applicable: Microsoft Teams
54
title: Get-CsUserPolicyPackageRecommendation
6-
author: etgottli
7-
ms.author: etgottli
8-
ms.reviewer: icchan
5+
author: icchan
6+
ms.author: icchan
97
manager: amitar
108
online version: https://docs.microsoft.com/powershell/module/teams/get-csuserpolicypackagerecommendation
119
schema: 2.0.0
@@ -26,7 +24,7 @@ Get-CsUserPolicyPackageRecommendation [-Identity] <String> [<CommonParameters>]
2624
## DESCRIPTION
2725

2826
This cmdlet supports retrieving recommendations for which policy packages are best suited for a given user. This recommendation is based on tenant and user information such as license types.
29-
For more information on policy packages, please review https://docs.microsoft.com/en-us/MicrosoftTeams/manage-policy-packages
27+
For more information on policy packages, please review https://docs.microsoft.com/MicrosoftTeams/manage-policy-packages.
3028

3129
## EXAMPLES
3230

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
---
2+
external help file: Microsoft.TeamsCmdlets.PowerShell.Custom.dll-Help.xml
3+
Module Name: MicrosoftTeams
4+
title: Grant-CsGroupPolicyPackageAssignment
5+
author: icchan
6+
ms.author: icchan
7+
manager: amitar
8+
online version: https://docs.microsoft.com/powershell/module/teams/grant-csgrouppolicypackageassignment
9+
schema: 2.0.0
10+
---
11+
12+
# Grant-CsGroupPolicyPackageAssignment
13+
14+
## SYNOPSIS
15+
16+
**Note:** This cmdlet is currently only available in private preview in the pre-release Teams PowerShell module.
17+
18+
This cmdlet applies a policy package to a group in a tenant.
19+
20+
## SYNTAX
21+
22+
```
23+
Grant-CsUserPolicyPackage -GroupId <String> -PackageName <String> [-Rank <String>] [<CommonParameters>]
24+
```
25+
26+
## DESCRIPTION
27+
28+
This cmdlet applies a policy package to a group in a tenant. Provide a group id to assign the package with all the associated policies. The available policy packages and their definitions can be found by running Get-CsPolicyPackage. Rank can be optionally specified to determine which policies in a package will be applied to the user in case they belong to two or more groups. If rank is not specified, the group's package assignment will be ranked last. If a user was directly assigned a package, direct assignment takes precedence over group assignment. For more information on rank and group policy assignments, please review [this section](New-CsGroupPolicyAssignment.md#description). For more information on policy packages, please review https://docs.microsoft.com/MicrosoftTeams/manage-policy-packages.
29+
30+
## EXAMPLES
31+
32+
### Example 1
33+
```powershell
34+
PS C:\> Grant-CsGroupPolicyPackageAssignment -GroupId 1bc0b35f-095a-4a37-a24c-c4b6049816ab -PackageName Education_PrimaryStudent
35+
```
36+
37+
Applies the Education_PrimaryStudent policy package to the group in the tenant.
38+
39+
### Example 2
40+
```powershell
41+
PS C:\> Grant-CsGroupPolicyPackageAssignment -GroupId 1bc0b35f-095a-4a37-a24c-c4b6049816ab -PackageName Education_Teacher -Rank 2
42+
```
43+
44+
Applies the Education_Teacher policy package to the group in the tenant with a rank of 2, which means each policy in the package will be assigned to the group with a rank of 2.
45+
46+
## PARAMETERS
47+
48+
### -GroupId
49+
50+
A group id in the tenant. It can either be a group's object id or a group's email address.
51+
52+
```yaml
53+
Type: String
54+
Parameter Sets: (All)
55+
Aliases:
56+
Applicable: Microsoft Teams
57+
Required: True
58+
Position: 0
59+
Default value: None
60+
Accept pipeline input: False
61+
Accept wildcard characters: False
62+
```
63+
64+
### -PackageName
65+
66+
The name of a specific policy package to apply. All possible policy package names can be found by running Get-CsPolicyPackage. To remove the currently assigned package, use $null or an empty string "". This will not remove any policy assignments, just the package assigned value.
67+
68+
```yaml
69+
Type: String
70+
Parameter Sets: (All)
71+
Aliases:
72+
Applicable: Microsoft Teams
73+
Required: True
74+
Position: 1
75+
Default value: None
76+
Accept pipeline input: False
77+
Accept wildcard characters: False
78+
```
79+
80+
### -Rank
81+
82+
The rank of the package assignment, relative to other group package assignments that contain one or more of the same policy types.
83+
84+
```yaml
85+
Type: String
86+
Parameter Sets: (All)
87+
Aliases:
88+
Applicable: Microsoft Teams
89+
Required: False
90+
Position: 2
91+
Default value: None
92+
Accept pipeline input: False
93+
Accept wildcard characters: False
94+
```
95+
96+
### CommonParameters
97+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
98+
99+
## INPUTS
100+
101+
## OUTPUTS
102+
103+
## NOTES
104+
105+
## RELATED LINKS
106+
107+
[Get-CsPolicyPackage](Get-CsPolicyPackage.md)
108+
109+
[New-CsGroupPolicyAssignment](New-CsGroupPolicyAssignment.md)

teams/teams-ps/teams/Grant-CsUserPolicyPackage.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
---
22
external help file: Microsoft.TeamsCmdlets.PowerShell.Custom.dll-Help.xml
33
Module Name: MicrosoftTeams
4-
applicable: Microsoft Teams
54
title: Grant-CsUserPolicyPackage
6-
author: etgottli
7-
ms.author: etgottli
8-
ms.reviewer: icchan
5+
author: icchan
6+
ms.author: icchan
97
manager: amitar
108
online version: https://docs.microsoft.com/powershell/module/teams/grant-csuserpolicypackage
119
schema: 2.0.0
@@ -15,7 +13,7 @@ schema: 2.0.0
1513

1614
## SYNOPSIS
1715

18-
This cmdlet supports applying a policy package to users in a tenant. Note that there is a limit of 20 users you can apply the package to at a time.
16+
This cmdlet supports applying a policy package to users in a tenant. Note that there is a limit of 20 users you can apply the package to at a time. To apply a policy package to a larger number of users, consider using New-CsBatchPolicyPackageAssignmentOperation.
1917

2018
## SYNTAX
2119

@@ -26,7 +24,7 @@ Grant-CsUserPolicyPackage [-Identity] <String[]> [-PackageName] <String> [<Commo
2624
## DESCRIPTION
2725

2826
This cmdlet supports applying a policy package to users in a tenant. Provide one or more user identities to assign the package with all the associated policies. The available policy packages and their definitions can be found by running Get-CsPolicyPackage. The recommended policy package for each user can be found by running Get-CsUserPolicyPackageRecommendation.
29-
For more information on policy packages, please review https://docs.microsoft.com/en-us/MicrosoftTeams/manage-policy-packages
27+
For more information on policy packages, please review https://docs.microsoft.com/MicrosoftTeams/manage-policy-packages.
3028

3129
## EXAMPLES
3230

@@ -57,7 +55,7 @@ Accept wildcard characters: False
5755
5856
### -PackageName
5957
60-
The name of a specific policy package to apply. All possible policy package names can be found by running Get-CsPolicyPackage.
58+
The name of a specific policy package to apply. All possible policy package names can be found by running Get-CsPolicyPackage. To remove the currently assigned package, use $null or an empty string "". This will not remove any policy assignments, just the package assigned value.
6159
6260
```yaml
6361
Type: String
@@ -87,3 +85,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
8785
[Get-CsUserPolicyPackageRecommendation](Get-CsUserPolicyPackageRecommendation.md)
8886
8987
[Get-CsUserPolicyPackage](Get-CsUserPolicyPackage.md)
88+
89+
[New-CsBatchPolicyPackageAssignmentOperation](New-CsBatchPolicyPackageAssignmentOperation.md)

teams/teams-ps/teams/New-CsBatchPolicyPackageAssignmentOperation.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
external help file: Microsoft.TeamsCmdlets.PowerShell.Custom.dll-Help.xml
33
Module Name: MicrosoftTeams
44
title: New-CsBatchPolicyPackageAssignmentOperation
5-
author: ruguan
6-
ms.author: ruguan
5+
author: icchan
6+
ms.author: icchan
77
manager: amitar
88
online version: https://docs.microsoft.com/powershell/module/teams/new-csbatchpolicypackageassignmentoperation
99
schema: 2.0.0
@@ -22,7 +22,7 @@ New-CsBatchPolicyPackageAssignmentOperation -Identity <String[]> -PackageName <S
2222

2323
## DESCRIPTION
2424

25-
This cmdlet submits an operation that applies a policy package to a batch of users in a tenant. Provide one or more user identities to assign the package with all the associated policies. The available policy packages and their definitions can be found by running Get-CsPolicyPackage. The recommended policy package for each user can be found by running Get-CsUserPolicyPackageRecommendation. For more information on policy packages, please review https://docs.microsoft.com/en-us/MicrosoftTeams/manage-policy-packages
25+
This cmdlet submits an operation that applies a policy package to a batch of users in a tenant. Provide one or more user identities to assign the package with all the associated policies. The available policy packages and their definitions can be found by running Get-CsPolicyPackage. The recommended policy package for each user can be found by running Get-CsUserPolicyPackageRecommendation. For more information on policy packages, please review https://docs.microsoft.com/MicrosoftTeams/manage-policy-packages.
2626

2727
## EXAMPLES
2828

@@ -53,7 +53,7 @@ Accept wildcard characters: False
5353
5454
### -PackageName
5555
56-
The name of a specific policy package to apply. All policy package names can be found by running Get-CsPolicyPackage.
56+
The name of a specific policy package to apply. All policy package names can be found by running Get-CsPolicyPackage. To remove the currently assigned package, use $null or an empty string "". This will not remove any policy assignments, just the package assigned value.
5757
5858
```yaml
5959
Type: String
@@ -80,4 +80,6 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
8080
8181
[Get-CsPolicyPackage](Get-CsPolicyPackage.md)
8282
83-
[Get-CsUserPolicyPackageRecommendation](Get-CsUserPolicyPackageRecommendation.md)
83+
[Get-CsUserPolicyPackageRecommendation](Get-CsUserPolicyPackageRecommendation.md)
84+
85+
[Get-CsUserPolicyPackage](Get-CsUserPolicyPackage.md)

0 commit comments

Comments
 (0)