macOSCompliancePolicy 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 class contains compliance settings for Mac OS.

Inherits from deviceCompliancePolicy

Methods

Method Return Type Description
List macOSCompliancePolicies macOSCompliancePolicy collection List properties and relationships of the macOSCompliancePolicy objects.
Get macOSCompliancePolicy macOSCompliancePolicy Read properties and relationships of the macOSCompliancePolicy object.
Create macOSCompliancePolicy macOSCompliancePolicy Create a new macOSCompliancePolicy object.
Delete macOSCompliancePolicy None Deletes a macOSCompliancePolicy.
Update macOSCompliancePolicy macOSCompliancePolicy Update the properties of a macOSCompliancePolicy object.
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. Inherited from deviceCompliancePolicy
createdDateTime DateTimeOffset DateTime the object was created. Inherited from deviceCompliancePolicy
description String Admin provided description of the Device Configuration. Inherited from deviceCompliancePolicy
lastModifiedDateTime DateTimeOffset DateTime the object was last modified. Inherited from deviceCompliancePolicy
displayName String Admin provided name of the device configuration. Inherited from deviceCompliancePolicy
version Int32 Version of the device configuration. Inherited from deviceCompliancePolicy
passwordRequired Boolean Whether or not to require a password.
passwordBlockSimple Boolean Indicates whether or not to block simple passwords.
passwordExpirationDays Int32 Number of days before the password expires.
passwordMinimumLength Int32 Minimum length of passwords.
passwordMinutesOfInactivityBeforeLock Int32 Minutes of inactivity required before a password is required.
passwordPreviousPasswordBlockCount Int32 Number of previous passwords to block.
passwordRequiredType String Type of password that is required. Possible values are: deviceDefault, alphanumeric, numeric.

Relationships

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

JSON Representation

Here is a JSON representation of the resource.

{
  "@odata.type": "#microsoft.graph.macOSCompliancePolicy",
  "id": "String (identifier)",
  "createdDateTime": "String (timestamp)",
  "description": "String",
  "lastModifiedDateTime": "String (timestamp)",
  "displayName": "String",
  "version": 1024,
  "passwordRequired": true,
  "passwordBlockSimple": true,
  "passwordExpirationDays": 1024,
  "passwordMinimumLength": 1024,
  "passwordMinutesOfInactivityBeforeLock": 1024,
  "passwordPreviousPasswordBlockCount": 1024,
  "passwordRequiredType": "String"
}