Update depEnrollmentProfile

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

Update the properties of a depEnrollmentProfile object.

Prerequisites

One of the following permission scopes is required to execute this API:

DeviceManagementServiceConfig.ReadWrite.All

HTTP Request

PATCH /deviceManagement/enrollmentProfiles/{enrollmentProfileId}

Request headers

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

Request body

In the request body, supply a JSON representation of a depEnrollmentProfile object. The following table shows the properties that are required when you create a depEnrollmentProfile.

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
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.
supportDepartment String Support department information
passCodeDisabled Boolean Indicates if Passcode setup pane is disabled
isMandatory Boolean Indicates if the profile is mandatory
locationDisabled Boolean Indicates if Location service setup pane is disabled
supportPhoneNumber String Support phone number
iTunesPairingMode String Indicates the iTunes pairing mode Possible values are: disallow, allow, requiresCertificate.
profileRemovalDisabled Boolean Indicates if the profile removal option is disabled
managementCertificates managementCertificateWithThumbprint collection Management certificates for Apple Configurator
restoreBlocked Boolean Indicates if Restore setup pane is blocked
restoreFromAndroidDisabled Boolean Indicates if Restore from Android is disabled
appleIdDisabled Boolean Indicates if Apple id setup pane is disabled
termsAndConditionsDisabled Boolean Indicates if 'Terms and Conditions' setup pane is disabled
touchIdDisabled Boolean Indicates if touch id setup pane is disabled
applePayDisabled Boolean Indicates if Apple pay setup pane is disabled
zoomDisabled Boolean Indicates if zoom setup pane is disabled
siriDisabled Boolean Indicates if siri setup pane is disabled
diagnosticsDisabled Boolean Indicates if diagnostics setup pane is disabled
macOSRegistrationDisabled Boolean Indicates if Mac OS registration is disabled
macOSFileVaultDisabled Boolean Indicates if Mac OS file vault is disabled
awaitDeviceConfiguredConfirmation Boolean Indicates if the device will need to wait for configured confirmation
sharedIPadMaximumUserCount Int32 This specifies the maximum number of users that can use a shared iPad. Only applicable in shared iPad mode.
enableSharedIPad Boolean This indicates whether the device is to be enrolled in a mode which enables multi user scenarios.Only applicable in shared iPads.

Response

If successful, this method returns a 200 OK response code and an updated depEnrollmentProfile object in the response body.

Example

Request

Here is an example of the request.

PATCH https://graph.microsoft.com/beta/deviceManagement/enrollmentProfiles/{enrollmentProfileId}
Content-type: application/json
Content-length: 1160

{
  "displayName": "Display Name value",
  "description": "Description value",
  "requiresUserAuthentication": true,
  "configurationEndpointUrl": "https://example.com/configurationEndpointUrl/",
  "supervisedModeEnabled": true,
  "supportDepartment": "Support Department value",
  "passCodeDisabled": true,
  "isMandatory": true,
  "locationDisabled": true,
  "supportPhoneNumber": "Support Phone Number value",
  "iTunesPairingMode": "allow",
  "profileRemovalDisabled": true,
  "managementCertificates": [
    {
      "@odata.type": "microsoft.graph.managementCertificateWithThumbprint",
      "thumbprint": "Thumbprint value",
      "certificate": "Certificate value"
    }
  ],
  "restoreBlocked": true,
  "restoreFromAndroidDisabled": true,
  "appleIdDisabled": true,
  "termsAndConditionsDisabled": true,
  "touchIdDisabled": true,
  "applePayDisabled": true,
  "zoomDisabled": true,
  "siriDisabled": true,
  "diagnosticsDisabled": true,
  "macOSRegistrationDisabled": true,
  "macOSFileVaultDisabled": true,
  "awaitDeviceConfiguredConfirmation": true,
  "sharedIPadMaximumUserCount": 10,
  "enableSharedIPad": 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 200 OK
Content-Type: application/json
Content-Length: 1268

{
  "@odata.type": "#microsoft.graph.depEnrollmentProfile",
  "id": "3d4534f7-34f7-3d45-f734-453df734453d",
  "displayName": "Display Name value",
  "description": "Description value",
  "requiresUserAuthentication": true,
  "configurationEndpointUrl": "https://example.com/configurationEndpointUrl/",
  "supervisedModeEnabled": true,
  "supportDepartment": "Support Department value",
  "passCodeDisabled": true,
  "isMandatory": true,
  "locationDisabled": true,
  "supportPhoneNumber": "Support Phone Number value",
  "iTunesPairingMode": "allow",
  "profileRemovalDisabled": true,
  "managementCertificates": [
    {
      "@odata.type": "microsoft.graph.managementCertificateWithThumbprint",
      "thumbprint": "Thumbprint value",
      "certificate": "Certificate value"
    }
  ],
  "restoreBlocked": true,
  "restoreFromAndroidDisabled": true,
  "appleIdDisabled": true,
  "termsAndConditionsDisabled": true,
  "touchIdDisabled": true,
  "applePayDisabled": true,
  "zoomDisabled": true,
  "siriDisabled": true,
  "diagnosticsDisabled": true,
  "macOSRegistrationDisabled": true,
  "macOSFileVaultDisabled": true,
  "awaitDeviceConfiguredConfirmation": true,
  "sharedIPadMaximumUserCount": 10,
  "enableSharedIPad": true
}