Skip to main content
11-Garnet
July 17, 2025
Solved

How to batch create a large number of users in Windchill

  • July 17, 2025
  • 1 reply
  • 486 views

How to batch create a large number of users in Windchill

Best answer by mmeadows-3

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"

1 reply

16-Pearl
July 17, 2025

We need more information to provide a decent response.

 

What LDAP are you using with Windchill and how is your Windchill configured for defining users?

If your LDAP JNDI Adapter(s) are configured read-only (e.g. Active Directory or other corporate LDAP), then users are created by the IT department. They would use an LDIF file to load user accounts.  They will be visible to Windchill once the accounts exist in LDAP and are visible to Windchill (i.e. under the search base and member of the LDAP "filter" group,

If your LDAP JNDI Adapter(s) are configured read/write (e.g. openDJ or other Windchill dedicated LDAP), then you can use loadFromFile to create users.

SUZ.Pluto11-GarnetAuthor
11-Garnet
July 17, 2025

Using OpenDJ, there are too many users, and creating them one by one is too slow.

16-Pearl
July 17, 2025

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"