You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
26
26
27
27
This cmdlet does not currently support returning policies for multiple users.
28
28
29
29
## EXAMPLES
30
30
31
31
### 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.
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.
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.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
61
112
For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).
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.
26
26
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.
28
28
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:
0 commit comments