Please enable JavaScript to view this site.

The manual for the JobRouter developer

Navigation: Webservice > Function and usage > User management

setUserRights

Scroll Prev Top Next More

Edit global user rights for an individual user

The method setUserRights updates the global user rights of the entered user in JobRouter.

For this a list of key-value pairs for the user rights to be updated has to be created and passed to the method during the call up. Rights from user profiles are not considered here.

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

userName

string

Username

userRights

ServiceObject_UserRight[]

Array with UserRight objects

Return value: bool; true, if the user rights were assigned successfully, otherwise false