user userRef set

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 owner parameter is explicitly set to the empty string, the logged-in user will be inserted as owner.

Syntax:

user withLogin login set {paramName value}

Function parameters:

  • paramName specifies the name of the user parameter whose value is to be set (see The user parameters).
  • value is 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 permissionGlobalUserEdit permission and be the direct or indirect owner of the login user.
  • If the logged-in user is not a super user and does not have the permissionGlobalUserEdit permission, he can only modify the values of his user fields and his own defaultGroup, email, password, and realName parameters. As a new defaultGroup he can only specify a group he is a member of.

Example:

CM>user withLogin jane set userLocked 0