deviceCompliancePolicyAssignment resource type

Namespace: microsoft.graph

Important: Microsoft Graph APIs under the /beta version are subject to change; production use is not supported.

Note: The Microsoft Graph API for Intune requires an active Intune license for the tenant.

Device compliance policy assignment.


Method Return Type Description
List deviceCompliancePolicyAssignments deviceCompliancePolicyAssignment collection List properties and relationships of the deviceCompliancePolicyAssignment objects.
Get deviceCompliancePolicyAssignment deviceCompliancePolicyAssignment Read properties and relationships of the deviceCompliancePolicyAssignment object.
Create deviceCompliancePolicyAssignment deviceCompliancePolicyAssignment Create a new deviceCompliancePolicyAssignment object.
Delete deviceCompliancePolicyAssignment None Deletes a deviceCompliancePolicyAssignment.
Update deviceCompliancePolicyAssignment deviceCompliancePolicyAssignment Update the properties of a deviceCompliancePolicyAssignment object.


Property Type Description
id String Key of the entity.
target deviceAndAppManagementAssignmentTarget Target for the compliance policy assignment.
source deviceAndAppManagementAssignmentSource The assignment source for the device compliance policy, direct or parcel/policySet. Possible values are: direct, policySets.
sourceId String The identifier of the source of the assignment.



JSON Representation

Here is a JSON representation of the resource.

  "@odata.type": "#microsoft.graph.deviceCompliancePolicyAssignment",
  "id": "String (identifier)",
  "target": {
    "@odata.type": "microsoft.graph.allDevicesAssignmentTarget",
    "deviceAndAppManagementAssignmentFilterId": "String",
    "deviceAndAppManagementAssignmentFilterType": "String"
  "source": "String",
  "sourceId": "String"