Create User
The method addUser adds a new user to JobRouter.
To do so, a user object has to be created, initialized with the user data and passed to the method during the request. Per request, the contents of the user-defined fields of the user as well as the global user rights of the user can also be initialized directly. The personal substitute of the user can also be defined.
Please note, the user rights can only be changed, if they are set to be on user level. If they are assigned on a profile level, direct user rights cannot be changed. Instead, they have to be changed by adjusting the respective user profile.
In case the request is successful, it returns the boolean value true.
In case a user with the same username already exists, an error message will be returned.
Method reference
Parameters |
Data type |
Description |
|---|---|---|
soUser |
user object |
|
multipleRepresentatives |
Flag, whether the personal representatives are read from the property representative or representatives. Set to false by default. In this case, only one representative will be updated. If the flag is set to true, the representatives are taken from the representatives property. In this case the representative property is ignored. |
Return value: bool; true, if the user was created successfully, otherwise false