Edit

Share via


Get-GroupPolicyAssignmentConflict

As an admin, you can get the existing conflicts for a particular group policy assignments which causes it not to be effective for some users.

Syntax

Default (Default)

Get-GroupPolicyAssignmentConflict
    -GroupId <String>
    -PolicyType <String>
    [<CommonParameters>]

Description

As an admin, you can get the existing conflicts for a particular group policy assignments which causes it not to be effective for some users, providing the group id and policy type of the assignment. This will return a list of users in where the group policy assignment is not effective due a direct assignment or other group policy assignment that is taking effect on it.

This is only applicable for tenants who have activated the new features related to group policy assignment adoption.

Examples

Example 1

PS C:\> Get-GroupPolicyAssignmentConflict -GroupId cde9a331-5bf8-415c-990c-19838b0d898a -PolicyType TeamsCallingPolicy

In this example, the Get-GroupPolicyAssignmentConflict cmdlet is used to get all the possible conflicts that the group policy assignment in TeamsCallingPolicy applied for group cde9a331-5bf8-415c-990c-19838b0d898a could have with others assignments.

Parameters

-GroupId

Group id of the group policy assignment from which the cmdlet will look for conflicts.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PolicyType

Policy type of the group policy assignment from which the cmdlet will look for conflicts.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.