Please enable JavaScript to view this site.

The manual for the JobRouter developer

Navigation: Webservice > Function and usage > User management

updateUser

Scroll Prev Top Next More

Edit a user

The method updateUser updates the data of a user in JobRouter.

To do so, a user object has to be created, initialized with the modified 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 modified directly. Furthermore, the personal substitute of the user can also be changed.

User rights can only be passed here as well, if user rights are not assigned on a profile level.

In case the request is successful, it returns the boolean value true.

In case the requested user does not exist, an error message will be returned.

Method reference

Parameters

Data type

Description

soUser

ServiceObject_User

user object

multipleRepresentatives

bool

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.

Return value: bool; true, if the user was updated successfully, otherwise false