In this example, the following values would need to be replaced with actual values. The groups and projects must be created before running the command.
This script would create the specified user ID and assign the default password, which has been encrypted with the encrypt command and pasted into the script. (You could send e-mail with the plain text password to the user with a request to change it upon first login.) The DirectoryCommand then assigns the user to the DataStageUser role. It then assigns the user to the dsusr and qsusr groups. It then assigns the user to the DSProd and DSDev projects on the InfoSphere Data Click engine, indicated here as HOSTNAME. And, in the same command, assigns the user to the DataStageOperator project role.