Available for: Content Management Server
Task: Sets the specified parameters to the corresponding values
for the user with the login login.
Additional information:
- If the
ownerparameter is explicitly set to the empty string, the logged-in user will be inserted asowner.
Syntax:
user withLogin login set {paramName value}
Function parameters:
-
paramNamespecifies the name of the user parameter whose value is to be set (see The user parameters). -
valueis the value to be set for the specified parameter.
Return value if successful: none
Necessary permissions:
- The logged-in user must be a super user or
- the logged-in user must have the
permissionGlobalUserEditpermission and be the direct or indirectownerof theloginuser. - If the logged-in user is not a super user and does not have the
permissionGlobalUserEditpermission, he can only modify the values of his user fields and his owndefaultGroup,email,password, andrealNameparameters. As a newdefaultGrouphe can only specify a group he is a member of.
Example:
CM>user withLogin jane set userLocked 0