As you may know, we recently added the ability to import a CSV or XLSX file of users to Endpoint Cloud for user enrollment.
This leaves on-premises AD admins with the task of building that file, so I did some looking and found a very nice example Powershell script for pulling AD users to a CSV.
https://gallery.technet.microsoft.com/scriptcenter/Powershell-script-to-5edcdaea
Of course, I had to modify the Path (in two places), destination server, and OU to pull data from. (Since we're using the built-in "Users" OU, I had to use CN= instead of OU=).
I also had to change what fields were pulled, as well as the names of them. Here's what my fields looked like:
$AllADUsers | Select-Object @{Label = "Email";Expression = {$_.Mail}}, @{Label = "FirstName";Expression = {$_.GivenName}}, @{Label = "LastName";Expression = {$_.Surname}}, @{Label = "Phone";Expression = {$_.telephoneNumber}}|
From there, I just copy pasted my users into the CSV that I downloaded from the portal and imported it, success!