How to automate user assignment for DEP-enrolled devices?

Description

iOS devices enrolled through Device Enrollment Program(DEP), must be assigned users in order to allocate devices. Users can be assigned to each device either individually or in bulk by adding a CSV with the user details. This process can be time consuming and cumbersome, when the device user is to be reassigned. MDM resolves this by automating user assignment for devices enrolled through DEP as explained below:

Steps

  1. Configure Active Directory(AD) in MDM.
  2. When configuring DEP, enable the option Authenticate and auto assign users on device activation. If DEP has been already configured, modify the existing settings to enable the option.
  3. Enroll devices as explained here.
  4. When the device is being setup, provide the user name as domain name\user name

Don't know about DEP? Learn how to enroll devices using DEP under 4 minutes here.