deviceCompliancePolicy resource type

Note: Using the Microsoft Graph APIs to configure Intune controls and policies still requires that the Intune service is correctly licensed by the customer.

This is the base class for Compliance policy. Compliance policies are platform specific and individual per-platform compliance policies inherit from here.

Methods

Method Return Type Description
List deviceCompliancePolicies deviceCompliancePolicy collection List properties and relationships of the deviceCompliancePolicy objects.
Get deviceCompliancePolicy deviceCompliancePolicy Read properties and relationships of the deviceCompliancePolicy object.
assign action deviceCompliancePolicyAssignment collection Not yet documented
scheduleActionsForRules action None Not yet documented
List deviceCompliancePolicyGroupAssignments deviceCompliancePolicyGroupAssignment collection Get the deviceCompliancePolicyGroupAssignments from the groupAssignments navigation property.
List deviceComplianceScheduledActionForRules deviceComplianceScheduledActionForRule collection Get the deviceComplianceScheduledActionForRules from the scheduledActionsForRule navigation property.
List deviceComplianceDeviceStatuses deviceComplianceDeviceStatus collection Get the deviceComplianceDeviceStatuses from the deviceStatuses navigation property.
List deviceComplianceUserStatuses deviceComplianceUserStatus collection Get the deviceComplianceUserStatuses from the userStatuses navigation property.
Get deviceComplianceDeviceOverview deviceComplianceDeviceOverview Get the deviceComplianceDeviceOverview from the deviceStatusOverview navigation property.
Get deviceComplianceUserOverview deviceComplianceUserOverview Get the deviceComplianceUserOverview from the userStatusOverview navigation property.

Properties

Property Type Description
id String Key of the entity.
createdDateTime DateTimeOffset DateTime the object was created.
description String Admin provided description of the Device Configuration.
lastModifiedDateTime DateTimeOffset DateTime the object was last modified.
displayName String Admin provided name of the device configuration.
version Int32 Version of the device configuration.

Relationships

Relationship Type Description
groupAssignments deviceCompliancePolicyGroupAssignment collection The list of group assignments for this compliance policy.
scheduledActionsForRule deviceComplianceScheduledActionForRule collection The list of scheduled action for this rule
deviceStatuses deviceComplianceDeviceStatus collection List of DeviceComplianceDeviceStatus.
userStatuses deviceComplianceUserStatus collection List of DeviceComplianceUserStatus.
deviceStatusOverview deviceComplianceDeviceOverview Device compliance devices status overview
userStatusOverview deviceComplianceUserOverview Device compliance users status overview

JSON Representation

Here is a JSON representation of the resource.

{
  "@odata.type": "#microsoft.graph.deviceCompliancePolicy",
  "id": "String (identifier)",
  "createdDateTime": "String (timestamp)",
  "description": "String",
  "lastModifiedDateTime": "String (timestamp)",
  "displayName": "String",
  "version": 1024
}