You can create a task client and use that to create new users and groups (e.g. client.addUser(..)):
https://hudson.jboss.org/hudson/job/jBPM5/lastSuccessfulBuild/artifact/target/jbpm-5.0-SNAPSHOT-docs-build/jbpm-docs/html/ch.Human_Tasks.html#d0e2364
If you are talking about the demo setup, you can simply extend the configuration file with new users here:
https://github.com/krisv/jbpm/tree/master/jbpm-installer/task-service/resources/org/jbpm
Kris
Reply to this message by going to Community
Start a new discussion in jBPM at Community