Last modified by Aurelie Bertrand on 2021/08/23 17:45

Show last authors
1 Updating a user can be done via a request to the server, without going through the administration pages.
2 This can make it possible, for example, to script or perform batch processing of administration operations.
3
4 **Url **: http:~/~/[serveur]:[port]/[domain]/**updateuser**
5
6 Example of an URL :
7
8 (% class="box" %)
9 (((
10 http:~/~/localhost:8080/ddenterpriseapi/updateuser
11 )))
12
13 Parameters:
14
15 * **user** = identifier of the user who connects to perform the operation
16 * **pass** = password of the user who connects to perform the operation
17 * **uid **= identifier of the user to be updated
18 * **password **= new password
19 * **displayName** = displayed name
20 * **roles** = [json] :
21
22 (% class="box" %)
23 (((
24 roles=["roleid1|RWX","roleid2|R"]
25
26 (% style="list-style-type:circle" %)
27 * Add the role **roleid1** with all the rigths(Read, Write, eXecute)
28 * Add the role **roleid2 **only in reading.
29 )))
30
31 * **rolesnoselected** = [json] : same principle as before, but to remove a role from the user (RWX useless)
32
33 (% class="box" %)
34 (((
35 rolesnoselected=["roleidtoremove"]
36
37 (% style="list-style-type:circle" %)
38 * Remove the role **roleidtoremove**.
39 )))
40
41 * **acls** = [json] :
42
43 (% class="box" %)
44 (((
45 Link : [[Access Control List>>doc:dev:Digdash.deployment.security.acls.WebHome]]
46 )))
47
48 * **aclsnoselected **= [json] :
49 * **groupacls **= [json] :
50 * **groupaclsnoselected **= [json] :
51 * **attributes **= [json] : 
52 ** digdashMail
53 ** digdashMailPassword
54 ** langChoice
55 ** locale
56 ** timeZone
57 ** digdashCSS
58 ** mustChangePassword
59 ** dashboardAccessPages
60 ** dashboardAccessPortlets
61 ** ...paramètres utilisateur personnalisés...
62
63 (% class="box" %)
64 (((
65 attributes={"digdashMail":"toto@digdash.com","langChoice":"1"}
66 Update the mail and the language of the user
67 )))
68
69 Complete example :
70
71 (% class="box" %)
72 (((
73 http:~/~/localhost:8080/ddenterpriseapi/updateuser?user=admin&pass=admin&uid=thename&password=mdp&
74 )))