Location: Optional Features > API > API Endpoints > userEdit
userEdit HomeBack Next

Updates the record of an LCMS user.

URL
ll_lcms/api/userEdit
Method
GET / POST or JSON
URL Parameters

 Required:

 token=[string as defined in LCMS Application Preferences]
 username=[string value, max length 200, accepts alphanumeric and underscores]

 Optional:
 
 firstname=[string, max length 110]
 lastname=[string, max length 110]
 new_username=[string, max length 200, accepts alphanumeric and underscores]
 password=[string, requirements based on application preferences (See Login Preferences for more information)]
 email=[string, max length 510]
 classification_id=[numeric, max length 1, valid entries = 0 thru 4]

 organization_name=[string, max length 400]

 controlled_goods_id=[numeric, max length 1, valid entries = 1 thru 4]
 account_disabled=[0=false, 1=true]

 If a user is linked to an active directory account (See Active Directory Authentication (LDAP) for more information), only the following fields may be modified   using the userEdit endpoint:

 classification_id=[numeric, max length 1, valid entries = 0 thru 4]

 controlled_goods_id=[numeric, max length 1, valid entries = 1 thru 4]

 organization_name=[string, max length 400]

oSuccess Response:

LCMS_U~1_img1106

Error Response

LCMS_U~1_img1107

 

Sample Call (GET)
 

 ll_lcms/api/userEdit/?token=xxx&username=jsmith&password=mynewpassword
 

Note: Rather than listing each individual possible error message, only one example is shown above. The “detail” value will only appear if a coding error is detected, i.e. database error. If Enforce Strong Passwords is enabled in the Application Settings screen, user passwords must contain at least three of the following: at least one number, at least one uppercase character, at least one lowercase character or at least one special character.