Use a load file if your LDAP JNDI Adapter(s) are configured for read-write.
The process will fail if the user account already exists.
Loader syntax comes from %wt_home%\loadFiles\csvmapfile.txt...
User~create~wt.load.LoadUser.createUser~user~newUser~webServerID~fullName~Last~Locale~Email~Description~Title~Organization~Street1~Street2~City~State~Country~ZipCode~ignore~password~DirectoryService~AllowLdapSync~TelephoneNo~MobileTelephoneNo~FaxNo~UserDomain~CabinetDomain
CSV example for loading users (C:\temp\orgUsers.csv)
#User,user,newUser,webServerID,fullName,Locale,Email,Description,Title,Organization,Street1,Street2,City,State,Country,ZipCode,ignore,password
User,,jdoe,jdoe,John Doe,US,jdoe@company.com,Development User Account,,Org1,,,,,,,x,jdoe
Convert CSV to XML
windchill wt.load.util.CSV2XML -input orgUsers.csv -root C:\temp\loadFiles
Load XML file (Windchill must be running and available)
windchill wt.load.LoadFromFile -d C:\temp\loadFiles\orgUsers.xml -u {site administrator} -p {password} -CONT_PATH "/wt.inf.container.OrgContainer=Org1"