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 |
Username |
|
userRights |
Array with UserRight objects |
Return value: bool; true, if the user rights were assigned successfully, otherwise false