Policy assignment based on group memberships in Microsoft Teams

Microsoft Teams policies can be assigned via group memberships from Active Directory or Azure AD. The configuration of this setting can be done via the GUI or PowerShell.

Unfortunately, I had to make the experience that the assignment via the GUI does not always work. Therefore, I will describe the creation via Powershell in the following. My group comes from a local Active Directory and is synchronized to Azure AD.

We need the ObjectID when we create it. Before that, we create a Microsoft Teams Powershell and connect the group to the Teams Meeting Policy. In principle, of course, all policy variants can be selected here.

New-CsGroupPolicyAssignment -GroupId 13e90b96-b0e5-4b33-bc7d-faf182a4fefc -PolicyType TeamsMeetingPolicy -PolicyName Tag:DL_O365_ALLON

We can check the hopefully successful assignment via Powershell or GUI.

Get-CsUserPolicyAssignment -Identity Bill.Gates@teamsnet.de -PolicyType TeamsMeetingPolicy  | select -ExpandProperty PolicySource

AssignmentType PolicyType         PolicyName    Reference                           
-------------- ----------         ----------    ---------                           
Group          TeamsMeetingPolicy DL_O365_ALLON 13e90b96-b0e5-4b33-bc7d-faf182a4fefc

If a user receives a direct assignment, the directly assigned policy takes effect.

PS PS C:\> Get-CsUserPolicyAssignment -Identity Bill.Gates@teamsnet.de -PolicyType TeamsMeetingPolicy  | select -ExpandProperty PolicySource

AssignmentType PolicyType         PolicyName    Reference                           
-------------- ----------         ----------    ---------                           
Direct         TeamsMeetingPolicy AllOff                                            
Group          TeamsMeetingPolicy DL_O365_ALLON 13e90b96-b0e5-4b33-bc7d-faf182a4fefc

This can also be seen very nicely in the user configuration in the Teams Admin Center 🙂

Das könnte dich auch interessieren …

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht.