Need help identifying the workflow needed to building a bulk csv import template..

Need help identifying the workflow needed to building a bulk csv import template..

We have O365 subscriptions, so we use two different new user templates that run a small script at the end to assign either a E2 or E3 O365 license after the user is created in AD.

I am having difficulty in seeing how to create a csv file, with the appropriate AD property names as the headers. I was hoping someone knew of a quick and easy way to peak inside the new user creation process via template, to see what all the csv headers needed to be. Also, im not sure if the scripts that run along with each template, will also run on each new entry in the csv import. 

                New to ADSelfService Plus?