Skip to content

Commit 8c53de1

Browse files
authored
Merge pull request MicrosoftDocs#4317 from tomkau/master
Additional updates for batch and group policy assignment docs
2 parents f4bb601 + a7d49c3 commit 8c53de1

File tree

3 files changed

+68
-11
lines changed

3 files changed

+68
-11
lines changed

teams/teams-ps/teams/Get-CsUserPolicyAssignment.md

Lines changed: 59 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,62 @@ This cmdlet is used to return the policy assignments for a user, both directly a
1818
## SYNTAX
1919

2020
```
21-
Get-CsUserPolicyAssignment [-Identity <String>]
21+
Get-CsUserPolicyAssignment -Identity <String> [-PolicyType <String>]
2222
```
2323

2424
## DESCRIPTION
25-
This cmdlets returns the effective policies for a user, based on either direct policy assignment or inheritance from a group policy assignment. For a given policy type, if an effective policy is not returned, this indicates that the effective policy for the user
25+
This cmdlets returns the effective policies for a user, based on either direct policy assignment or inheritance from a group policy assignment. For a given policy type, if an effective policy is not returned, this indicates that the effective policy for the user is either the tenant global default policy (if set) or the system global default policy.
2626

2727
This cmdlet does not currently support returning policies for multiple users.
2828

2929
## EXAMPLES
3030

3131
### Example 1
32-
This examples returns the policies for a user and indicates whether the policy is directly assigned to the user or was inherited from a group.
32+
This examples returns the policies that are either directly assigned to a user or that the user inherited from a group.
3333

3434
```
35-
Get-CsUserPolicyAssignment -Identity 1471bd98-0a32-4426-930d-d790de8a0a70
35+
Get-CsUserPolicyAssignment -Identity 3b90faad-9056-49ff-8357-0b53b1d45d39
3636
37-
PolicyType PolicyName PolicySource
38-
------- ---------- ----------
39-
TeamsMeetingPolicy Host:AllOn Group
40-
TeamsMessagingPolicy Tenant:SalesMessaging Direct
37+
PolicyName PolicyType
38+
---------- ----------
39+
AllowCalling TeamsCallingPolicy
40+
Employees Events TeamsMeetingBroadcastPolicy
41+
Kiosk TeamsMeetingPolicy
42+
```
43+
44+
### Example 2
45+
The PolicySource property can be expanded to show more details for a particular policy type. The PolicySource property indicates whether a particular policy was directly assigned to the user or inherited from a group.
46+
47+
In this example, the details for the TeamsBroadcastMeetingPolicy are shown. The user was directly assigned the "Employees Events" policy, which took precedence over the "Vendor Live Events" policy which is assigned to a group that the user belongs to.
48+
49+
```
50+
Get-CsUserPolicyAssignment -Identity 3b90faad-9056-49ff-8357-0b53b1d45d39 -PolicyType TeamsMeetingBroadcastPolicy | select -ExpandProperty PolicySource
51+
52+
AssignmentType PolicyName Reference
53+
-------------- ---------- ---------
54+
Direct Employees Events
55+
Group Vendor Live Events 566b8d39-5c5c-4aaa-bc07-4f36278a1b38
56+
```
57+
58+
### Example 3
59+
In this example, the details for the TeamsMeetingPolicy are shown. The user is a member of two groups, each of which is assigned a TeamsMeetingPolicy. The user has inherited the "AllOn" policy because the priority of the assignment is higher than that of the "Kiosk" policy assignment to the other group.
60+
61+
```
62+
Get-CsUserPolicyAssignment -Identity 3b90faad-9056-49ff-8357-0b53b1d45d39 -PolicyType TeamsMeetingPolicy | select -ExpandProperty PolicySource
63+
64+
AssignmentType PolicyName Reference
65+
-------------- ---------- ---------
66+
Group AllOn d8ebfa45-0f28-4d2d-9bcc-b158a49e2d17
67+
Group Kiosk 566b8d39-5c5c-4aaa-bc07-4f36278a1b38
68+
69+
70+
Get-CsGroupPolicyAssignment -PolicyType TeamsMeetingPolicy
71+
72+
GroupId PolicyName PolicyType Priority
73+
------- ---------- ---------- --------
74+
d8ebfa45-0f28-4d2d-9bcc-b158a49e2d17 AllOn TeamsMeetingPolicy 1
75+
566b8d39-5c5c-4aaa-bc07-4f36278a1b38 Kiosk TeamsMeetingPolicy 2
76+
```
4177

4278
## PARAMETERS
4379

@@ -56,6 +92,21 @@ Accept pipeline input: False
5692
Accept wildcard characters: False
5793
```
5894
95+
### -PolicyType
96+
Use to filter to a specific policy type.
97+
98+
```yaml
99+
Type: String
100+
Parameter Sets:
101+
Aliases:
102+
103+
Required: False
104+
Position: Named
105+
Default value: None
106+
Accept pipeline input: False
107+
Accept wildcard characters: False
108+
```
109+
59110
### CommonParameters
60111
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
61112
For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).

teams/teams-ps/teams/New-CsBatchPolicyAssignmentOperation.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ Users can be specified by their object ID (guid) or by their UPN/SIP/email (user
2828

2929
A batch may contain up to 20,000 users.
3030

31+
Batch policy assignment is currently limited to the following policy types:
32+
CallingLineIdentity, TeamsAppSetupPolicy, TeamsAppPermissionPolicy, TeamsCallingPolicy, TeamsCallParkPolicy, TeamsChannelsPolicy, TeamsEducationAssignmentsAppPolicy, TeamsMeetingBroadcastPolicy, TeamsMeetingPolicy, TeamsMessagingPolicy, TeamsUpdateManagementPolicy, TeamsUpgradePolicy, TeamsVerticalPackagePolicy, TeamsVideoInteropServicePolicy, TenantDialPlan
33+
3134
## EXAMPLES
3235

3336
### Example 1

teams/teams-ps/teams/New-CsGroupPolicyAssignment.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,14 @@ New-CsGroupPolicyAssignment -GroupId <String> -PolicyType <String> -PolicyName <
2222
```
2323

2424
## DESCRIPTION
25-
This cmdlet will assign a policy to a group. The group can be specified by object id or by email/SIP address.
25+
This cmdlet will assign a policy to a group. The policy assignment will then be propagated to the members of the group in accordance with the rules for group policy inheritance. If a user is directly assigned a policy of a specific type, then they will not inherit a policy of the same type from a group. If a user is a member of two or more groups that each have a policy of the same type assigned, then the user will inherit the policy based on the group policy assignment with the highest priority.
2626

27-
The priority is used to determine which policy a user should inherit as their effective policy if they are a member of two or more groups that each have a policy of the same type assigned (and the user has not been directly assigned a policy of the same type).
27+
The group policy assignment is set at the time a policy is being assigned to a group and is relative to other group policy assignments of the same policy type. For example, if there are two groups, each assigned a Teams Meeting policy, then one of the group assignments will be priority 1 while the other will be priority 2.
2828

29-
It’s helpful to think of priority as determining the position of each policy assignment in an ordered list, from highest priority to lowest priority. In fact, priority can be specified as any number, but these are converted into sequential values 1, 2, 3, etc. with 1 being the highest priority. When assigning a policy to a group, set the priority to be the position in the list where you want the new group policy assignment to be. If a priority is not specified, the policy assignment will be given the lowest priority.
29+
It’s helpful to think of priority as determining the position of each policy assignment in an ordered list, from highest priority to lowest priority. In fact, priority can be specified as any number, but these are converted into sequential values 1, 2, 3, etc. with 1 being the highest priority. When assigning a policy to a group, set the priority to be the position in the list where you want the new group policy assignment to be. If a priority is not specified, the policy assignment will be given the lowest priority, corresponding to the end of the list.
30+
31+
Group policy assignment is currently limited to the following policy types:
32+
TeamsCallingPolicy, TeamsCallParkPolicy, TeamsEducationAssignmentsAppPolicy, TeamsMeetingBroadcastPolicy, TeamsMeetingPolicy, TeamsMessagingPolicy, TeamsUpdateManagementPolicy
3033

3134
## EXAMPLES
3235

0 commit comments

Comments
 (0)