This website is archiving the documentation of versions prior to 7.3. You can visit the New Bonita BPM Documentation website for versions 7.3 and greater.
Documentation- Legacy -
This example shows you how to create a new user and assign the user to a profile.
Create a new user by calling the createUser method: