Update User Status

Description

Change a user's status.

Status is one of:

  • disable - user is temporarily forbidden from signing on
  • enable - opposite of disabled

The calling user must have maintain-users authority.

Input

<UpdateStatus>
<userLogonReference>logon reference</userLogonReference>
<password>password</password>
<userIdentifierUpdate>logon reference</userIdentifierUpdate>
<userLogonReferenceUpdate>logon reference</userLogonReferenceUpdate>
<action>disable|enable</action> </UpdateStatus>

userIdentifierUpdate and userLogonReferenceUpdate identify the user to be updated. Only one is required. If both are passed, userIdentifierUpdate takes precedence.

It is possible for a user to change their own status; however disabling the user will immediately invalidate their on-line session.

Output

<UpdateStatus>
<errorNumber>0</errorNumber>
</UpdateStatus>

Errors

101 - not authorised
102 - parameter error (action is wrong)
103 - user not found

Class

com.metrici.xerula.UpdateStatusService