Get-MgDirectoryCustomSecurityAttributeDefinitionCount
GET /directory/customSecurityAttributeDefinitions/$count (v1.0)
Module: Microsoft.Graph.Identity.DirectoryManagement
Permissions
Delegated (work or school)
- CustomSecAttributeDefinition.Read.All (least privilege)
- CustomSecAttributeDefinition.ReadWrite.All
Delegated (personal)
No permission metadata available for this account type.
Application
- CustomSecAttributeDefinition.Read.All (least privilege)
- CustomSecAttributeDefinition.ReadWrite.All
Source: Microsoft Graph PowerShell SDK metadata
Confirm property-specific permissions, Entra roles, licensing and ownership requirements in the official documentation. SDK metadata outside the verified sample is not independently certified.
Explore Get-MgDirectoryCustomSecurityAttributeDefinitionCount