Blog Post

Core Infrastructure and Security Blog
4 MIN READ

Update Entra ID Device Extension Attributes via PowerShell & Create Dynamic Security Groups.

SantoshPargi's avatar
SantoshPargi
Icon for Microsoft rankMicrosoft
Sep 01, 2025

1) Introduction Microsoft Entra ID device objects provide a rich set of properties for identity, compliance, and device management. Among these, extension attributes allow organizations to store custom metadata on device objects in the cloud directory (not to be confused with on-premises AD extension attributes). These attributes are useful for categorization, automation, and policy enforcement. You can update these extension attributes using PowerShell through the Microsoft Graph API. Once populated, these attributes can be leveraged to create dynamic device groups in Entra ID, enabling targeted Defender for Endpoint policies, Conditional Access policies, Intune configurations, or application assignments.

2) Overview of Extension Attributes and Updating via PowerShell What Are Extension Attributes? Extension attributes (1–15) are predefined string fields available on Entra ID device objects. T...
Published Sep 01, 2025
Version 1.0