---
title: Assign Account-Driven Enrollment Service Discovery
framework: devicemanagement
role: symbol
role_heading: Web Service Endpoint
path: devicemanagement/assign-account-driven-enrollment-profile
---

# Assign Account-Driven Enrollment Service Discovery

The Account-Driven Enrollment profile defines key attributes related to service discovery for account-driven enrollment by MDM.

## URL

POST https://mdmenrollment.apple.com/account-driven-enrollment/profile

## Response Codes

200 OK: 400 Bad Request:  MDM_SERVICE_DISCOVERY_URL_REQUIRED: Indicates that the MDM Service Discovery URL is missing in the request. MDM_SERVICE_DISCOVERY_URL_NOT_VALID: Indicates that the provided MDM Service Discovery URL may be incorrectly formatted or doesn’t belong to the required HTTPS scheme. ORG_NOT_SUPPORTED: Indicates that the associated organization isn’t supported.

## Mentioned in

Implementing the simple authentication account-driven enrollment flow

## Overview

Overview This profile includes the MDM Service Discovery URL, which redirects users to the MDM server to start the enrollment process during account-driven enrollment.

## HTTP Body

The profile request for this account-driven enrollment.

## Topics

### Supporting requests

- [AccountDrivenEnrollmentProfileRequest](devicemanagement/accountdrivenenrollmentprofilerequest.md)

## See Also

### Account-driven enrollment service discovery

- [Fetch Account-Driven Enrollment Service Discovery](devicemanagement/fetch-account-driven-enrollment-profile.md)
- [Remove Account-Driven Enrollment Profile](devicemanagement/remove-account-driven-enrollment-profile.md)
