Update an user

Last modified by Aurelie Bertrand on 2024/06/12 10:36

Updating a user can be done via a request to the server, without going through the administration pages.
This can make it possible, for example, to script or perform batch processing of administration operations.

Url : http://[serveur]:[port]/[domain]/updateuser

Example of an URL :

http://localhost:8080/ddenterpriseapi/updateuser

Parameters:

  • user = identifier of the user who connects to perform the operation
  • pass = password of the user who connects to perform the operation
  • uid = identifier of the user to be updated
  • password = new password
  • displayName = displayed name
  • roles = [json] : 

roles=["roleid1|RWX","roleid2|R"]

  • Add the role roleid1 with all the rigths(Read, Write, eXecute)
  • Add the role roleid2 only in reading.
  • rolesnoselected = [json] : same principle as before, but to remove a role from the user (RWX useless)

rolesnoselected=["roleidtoremove"]

  • Remove the role roleidtoremove.
  • acls = [json] : 
  • aclsnoselected = [json] : 
  • groupacls = [json] : 
  • groupaclsnoselected = [json] : 
  • attributes = [json] : 
    • digdashMail
    • digdashMailPassword
    • langChoice
    • locale
    • timeZone
    • digdashCSS
    • mustChangePassword
    • dashboardAccessPages
    • dashboardAccessPortlets
    • ...paramètres utilisateur personnalisés...

attributes={"digdashMail":"toto@digdash.com","langChoice":"1"}
Update the mail and the language of the user

Complete example :

http://localhost:8080/ddenterpriseapi/updateuser?user=admin&pass=admin&uid=thename&password=mdp&