Create depMacOSEnrollmentProfile

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.

Create a new depMacOSEnrollmentProfile object.

Prerequisites

One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

Permission type Permissions (from most to least privileged)
Delegated (work or school account) DeviceManagementServiceConfig.ReadWrite.All
Delegated (personal Microsoft account) Not supported.
Application Not supported.

HTTP Request

POST /deviceManagement/depOnboardingSettings/{depOnboardingSettingId}/enrollmentProfiles

Request headers

Header Value
Authorization Bearer <token> Required.
Accept application/json

Request body

In the request body, supply a JSON representation for the depMacOSEnrollmentProfile object.

The following table shows the properties that are required when you create the depMacOSEnrollmentProfile.

Property Type Description
id String The GUID for the object Inherited from enrollmentProfile
displayName String Name of the profile Inherited from enrollmentProfile
description String Description of the profile Inherited from enrollmentProfile
requiresUserAuthentication Boolean Indicates if the profile requires user authentication Inherited from enrollmentProfile
configurationEndpointUrl String Configuration endpoint url to use for Enrollment Inherited from enrollmentProfile
enableAuthenticationViaCompanyPortal Boolean Indicates to authenticate with Apple Setup Assistant instead of Company Portal. Inherited from enrollmentProfile
requireCompanyPortalOnSetupAssistantEnrolledDevices Boolean Indicates that Company Portal is required on setup assistant enrolled devices Inherited from enrollmentProfile
isDefault Boolean Indicates if this is the default profile Inherited from depEnrollmentBaseProfile
supervisedModeEnabled Boolean Supervised mode, True to enable, false otherwise. See https://docs.microsoft.com/en-us/intune/deploy-use/enroll-devices-in-microsoft-intune for additional information. Inherited from depEnrollmentBaseProfile
supportDepartment String Support department information Inherited from depEnrollmentBaseProfile
passCodeDisabled Boolean Indicates if Passcode setup pane is disabled Inherited from depEnrollmentBaseProfile
isMandatory Boolean Indicates if the profile is mandatory Inherited from depEnrollmentBaseProfile
locationDisabled Boolean Indicates if Location service setup pane is disabled Inherited from depEnrollmentBaseProfile
supportPhoneNumber String Support phone number Inherited from depEnrollmentBaseProfile
profileRemovalDisabled Boolean Indicates if the profile removal option is disabled Inherited from depEnrollmentBaseProfile
restoreBlocked Boolean Indicates if Restore setup pane is blocked Inherited from depEnrollmentBaseProfile
appleIdDisabled Boolean Indicates if Apple id setup pane is disabled Inherited from depEnrollmentBaseProfile
termsAndConditionsDisabled Boolean Indicates if 'Terms and Conditions' setup pane is disabled Inherited from depEnrollmentBaseProfile
touchIdDisabled Boolean Indicates if touch id setup pane is disabled Inherited from depEnrollmentBaseProfile
applePayDisabled Boolean Indicates if Apple pay setup pane is disabled Inherited from depEnrollmentBaseProfile
zoomDisabled Boolean Indicates if zoom setup pane is disabled Inherited from depEnrollmentBaseProfile
siriDisabled Boolean Indicates if siri setup pane is disabled Inherited from depEnrollmentBaseProfile
diagnosticsDisabled Boolean Indicates if diagnostics setup pane is disabled Inherited from depEnrollmentBaseProfile
displayToneSetupDisabled Boolean Indicates if displaytone setup screen is disabled Inherited from depEnrollmentBaseProfile
privacyPaneDisabled Boolean Indicates if privacy screen is disabled Inherited from depEnrollmentBaseProfile
deviceNameTemplate String Sets a literal or name pattern. Inherited from depEnrollmentBaseProfile
registrationDisabled Boolean Indicates if registration is disabled
fileVaultDisabled Boolean Indicates if file vault is disabled
iCloudDiagnosticsDisabled Boolean Indicates if iCloud Analytics screen is disabled
iCloudStorageDisabled Boolean Indicates if iCloud Documents and Desktop screen is disabled
chooseYourLockScreenDisabled Boolean Indicates if iCloud Documents and Desktop screen is disabled

Response

If successful, this method returns a 201 Created response code and a depMacOSEnrollmentProfile object in the response body.

Example

Request

Here is an example of the request.

POST https://graph.microsoft.com/beta/deviceManagement/depOnboardingSettings/{depOnboardingSettingId}/enrollmentProfiles
Content-type: application/json
Content-length: 1191

{
  "@odata.type": "#microsoft.graph.depMacOSEnrollmentProfile",
  "displayName": "Display Name value",
  "description": "Description value",
  "requiresUserAuthentication": true,
  "configurationEndpointUrl": "https://example.com/configurationEndpointUrl/",
  "enableAuthenticationViaCompanyPortal": true,
  "requireCompanyPortalOnSetupAssistantEnrolledDevices": true,
  "isDefault": true,
  "supervisedModeEnabled": true,
  "supportDepartment": "Support Department value",
  "passCodeDisabled": true,
  "isMandatory": true,
  "locationDisabled": true,
  "supportPhoneNumber": "Support Phone Number value",
  "profileRemovalDisabled": true,
  "restoreBlocked": true,
  "appleIdDisabled": true,
  "termsAndConditionsDisabled": true,
  "touchIdDisabled": true,
  "applePayDisabled": true,
  "zoomDisabled": true,
  "siriDisabled": true,
  "diagnosticsDisabled": true,
  "displayToneSetupDisabled": true,
  "privacyPaneDisabled": true,
  "deviceNameTemplate": "Device Name Template value",
  "registrationDisabled": true,
  "fileVaultDisabled": true,
  "iCloudDiagnosticsDisabled": true,
  "iCloudStorageDisabled": true,
  "chooseYourLockScreenDisabled": true
}

Response

Here is an example of the response. Note: The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call.

HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 1240

{
  "@odata.type": "#microsoft.graph.depMacOSEnrollmentProfile",
  "id": "e433c95c-c95c-e433-5cc9-33e45cc933e4",
  "displayName": "Display Name value",
  "description": "Description value",
  "requiresUserAuthentication": true,
  "configurationEndpointUrl": "https://example.com/configurationEndpointUrl/",
  "enableAuthenticationViaCompanyPortal": true,
  "requireCompanyPortalOnSetupAssistantEnrolledDevices": true,
  "isDefault": true,
  "supervisedModeEnabled": true,
  "supportDepartment": "Support Department value",
  "passCodeDisabled": true,
  "isMandatory": true,
  "locationDisabled": true,
  "supportPhoneNumber": "Support Phone Number value",
  "profileRemovalDisabled": true,
  "restoreBlocked": true,
  "appleIdDisabled": true,
  "termsAndConditionsDisabled": true,
  "touchIdDisabled": true,
  "applePayDisabled": true,
  "zoomDisabled": true,
  "siriDisabled": true,
  "diagnosticsDisabled": true,
  "displayToneSetupDisabled": true,
  "privacyPaneDisabled": true,
  "deviceNameTemplate": "Device Name Template value",
  "registrationDisabled": true,
  "fileVaultDisabled": true,
  "iCloudDiagnosticsDisabled": true,
  "iCloudStorageDisabled": true,
  "chooseYourLockScreenDisabled": true
}