macOSCompliancePolicy resource type

Important: APIs under the / beta version in Microsoft Graph are in preview and are subject to change. Use of these APIs in production applications is not supported.

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.

Properties

Property Type Description
roleScopeTagIds String collection List of Scope Tags for this Entity instance. Inherited from deviceCompliancePolicy
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. Valid values 1 to 65535
passwordMinimumLength Int32 Minimum length of password. Valid values 4 to 14
passwordMinutesOfInactivityBeforeLock Int32 Minutes of inactivity before a password is required.
passwordPreviousPasswordBlockCount Int32 Number of previous passwords to block. Valid values 1 to 24
passwordMinimumCharacterSetCount Int32 The number of character sets required in the password.
passwordRequiredType requiredPasswordType The required password type. Possible values are: deviceDefault, alphanumeric, numeric.
osMinimumVersion String Minimum IOS version.
osMaximumVersion String Maximum IOS version.
systemIntegrityProtectionEnabled Boolean Require that devices have enabled system integrity protection.
deviceThreatProtectionEnabled Boolean Require that devices have enabled device threat protection .
deviceThreatProtectionRequiredSecurityLevel deviceThreatProtectionLevel Require Mobile Threat Protection minimum risk level to report noncompliance. Possible values are: unavailable, secured, low, medium, high, notSet.
storageRequireEncryption Boolean Require encryption on Mac OS devices.
gatekeeperAllowedAppSource macOSGatekeeperAppSources System and Privacy setting that determines which download locations apps can be run from on a macOS device. Possible values are: notConfigured, macAppStore, macAppStoreAndIdentifiedDevelopers, anywhere.
firewallEnabled Boolean Whether the firewall should be enabled or not.
firewallBlockAllIncoming Boolean Corresponds to the “Block all incoming connections” option.
firewallEnableStealthMode Boolean Corresponds to “Enable stealth mode.”

Relationships

Relationship Type Description
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
deviceSettingStateSummaries settingStateDeviceSummary collection Compliance Setting State Device Summary Inherited from deviceCompliancePolicy
assignments deviceCompliancePolicyAssignment collection The collection of assignments for this compliance policy. Inherited from deviceCompliancePolicy

JSON Representation

Here is a JSON representation of the resource.

{
  "@odata.type": "#microsoft.graph.macOSCompliancePolicy",
  "roleScopeTagIds": [
    "String"
  ],
  "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,
  "passwordMinimumCharacterSetCount": 1024,
  "passwordRequiredType": "String",
  "osMinimumVersion": "String",
  "osMaximumVersion": "String",
  "systemIntegrityProtectionEnabled": true,
  "deviceThreatProtectionEnabled": true,
  "deviceThreatProtectionRequiredSecurityLevel": "String",
  "storageRequireEncryption": true,
  "gatekeeperAllowedAppSource": "String",
  "firewallEnabled": true,
  "firewallBlockAllIncoming": true,
  "firewallEnableStealthMode": true
}