IAMinerva
HomeBlogAbout
m3M365 NewscoMicrosoft CopilotteMicrosoft TeamsshSharePoint & OneDriveinIntune & SecurityexExchange & OutlookpoPower PlatformazAzure & Entra IDtuTutorials & GuidesevEvents & ConferencesseSecuritywiWindows
IAMinerva

Professional blog dedicated to the Microsoft 365 ecosystem.

Quick links

HomeBlogAboutNewsletter

Stay informed

Get the latest Microsoft 365 news delivered straight to your inbox.

© 2026 IAMinerva. All rights reserved.

Built withNext.js&Tailwind
Support des labels de conteneur et controle d'accès invité Entra ID
BlogSecurityContainer label support and Entra ID guest access control
Security#Entra ID#Group Security#Microsoft Purview

Container label support and Entra ID guest access control

Learn how to manage security groups in Entra ID with Purview labels and control guest access using new parameters.

Houssem MAKHLOUF
June 2, 2026
3 min read

TL;DR par Minerva

généré par IA

Learn how to manage security groups in Entra ID with Purview labels and control guest access using new parameters.

Introduction

Managing security groups and associated parameters is at the heart of security in Entra ID. Recently, Microsoft introduced new features that enhance control capabilities through settings models for security groups. These features include:

  • Support for Purview container labels.
  • Guest access control for security groups.

This guide will help you discover these new features and how to configure them.

Understanding settings models for security groups

To facilitate security group management, two directory settings templates were introduced:

  • Group.Security (ID: d209f6fa-3839-4d70-b83f-60b1c64d0e8f): global configuration for security groups.
  • Group.Security.Policies (ID: 7e0abea2-5c20-405f-9658-bfc9a523fd49): configuration specific to a group.
⚡PowerShell
1Get-MgGroupSettingTemplateGroupSettingTemplate | ? {$_.DisplayName -like "Group.Security*"} | select *

These templates integrate the following parameters:

Parameter nameDescriptionType
AllowToAddGuestsIndicates whether guests are allowed.System.Boolean
EnableMIPLabelsIndicates whether Purview labels are enabled.System.Boolean

How to configure these parameters?

The operation is performed via PowerShell cmdlets or the Graph API. Here is an example:

1

Connecting to Graph

Connect with the necessary permissions.

⚡PowerShell
1Connect-MgGraph -Scopes "GroupSettings.ReadWrite.All"
2

Checking for an existing object

Use the template ID to check if it already exists.

⚡PowerShell
1$res = Get-MgGroupSetting | ? {$_.TemplateId -eq "d209f6fa-3839-4d70-b83f-60b1c64d0e8f"}
3

Creating or updating the object

Create or update global parameters.

⚡PowerShell
1# Updating an existing object
2if ($res) { Update-MgGroupSetting -GroupSettingId $res.Id -Values (@{'name'='AllowToAddGuests';'value'='false'}) }
3
4# Creating a new object
5New-MgGroupSetting -TemplateId d209f6fa-3839-4d70-b83f-60b1c64d0e8f -Values (@{'name'='AllowToAddGuests';'value'='false'})
!

Warning

If a group is already associated with a container label, certain modifications may fail with an error message related to label restrictions.

Support for sensitivity labels for security groups

Purview labels allow you to control guest access and secure groups. However, their activation is limited to global configurations and requires the following steps:

Enabling Purview labels

1

Configuring the EnableMIPLabels parameter

Use PowerShell cmdlets to enable this feature globally.

⚡PowerShell
1Connect-MgGraph -Scopes "GroupSettings.ReadWrite.All"
2
3$res = Get-MgGroupSetting | ? {$_.TemplateId -eq "d209f6fa-3839-4d70-b83f-60b1c64d0e8f"}
4if ($res) { Update-MgGroupSetting -GroupSettingId $res.Id -Values (@{'name'='EnableMIPLabels';'value'='true'}) }
2

Running label synchronization

Synchronize Purview labels with Entra ID.

⚡PowerShell
1Execute-AzureADLabelSync

Assigning labels to an existing group

Direct assignment of a label to a group can be done via PowerShell or the Graph API. For example:

⚡PowerShell
1Connect-MgGraph -Scopes "Group.ManageProtection.All"
2
3# Label assignment
4Update-MgGroup -GroupId c20a48cc-3931-47e7-95fd-911224c600bb -AssignedLabels @{labelId = "97de4155-a502-43c4-bf15-51cd8447c07e"}
{}JSON
1PATCH https://graph.microsoft.com/v1.0/groups/37e85861-5e4e-4670-9dfd-07e22a678779
2{
3 "assignedLabels": [
4 {
5 "labelId": "97de4155-a502-43c4-bf15-51cd8447c07e"
6 }
7 ]
8}

SecurityGroupsLabels

i

Good to know

Once a label is assigned to a group, it cannot be modified or deleted, whether via the user interface or API methods.

Conclusion

These new Entra ID features provide IT professionals with more granular control over access management and group security. Whether through global or specific parameters, or through Purview labels, each method brings flexibility and robustness to administration.

In the next article, we will explore the restrictions related to using settings and labels in the service.

Related articles

  • Managing Microsoft 365 groups with Entra ID
  • Introduction to Purview labels in Microsoft 365
Share:
HM

Houssem MAKHLOUF

Microsoft 365 enthusiast & IT professional.

Previous article

How Many Global Admins Should I Have in Microsoft 365?

May 13, 2026
Next article

How to Resolve Active Directory Replication Errors

Jun 2, 2026

Related articles

Classeur ancien ouvert, entouré de symboles de gestion des données et d'archivage.securite

Microsoft Purview: Optimize Data Lifecycle Management

Maximize data security with Microsoft Purview through intelligent lifecycle management and advanced features.

Jun 29, 20264 min
Cadenas stylisé avec des éléments graphiques abstraits et du texte sur la sécurité.securite

New Microsoft 365 Security Adoption Model

Discover the Microsoft 365 security adoption guide based on Zero Trust principles: modular approaches and modern strategies.

Jun 29, 20264 min
Exécution de scripts PowerShell pour auditer des applications AI et gérer leurs enregistrements.copilot

Audit and Manage AI Applications with PowerShell

Audit unauthorized AI applications in Entra ID with PowerShell and Microsoft Graph to strengthen control and security.

Jun 28, 20264 min