Users API
Update user
It modifies the exsisting user
PUT/rest/msm/users/{userId}/
Query parameters | none |
Header |
|
Header/Parameter | tenant |
Body |
|
Returns | {"result":"ok"} or {"result":"error"} |
Required role | KBA_MANAGER |
Managed errors | 401: insufficient privileges |
Example request
curl -X PUT 'http://localhost:8080/mwp/mwp/rest/msm/users/419' -H 'Content-Type: application/json' -H 'auth-token: 4dbd0d4f-9f44-41ab-ba68-3a51f7fd834a.local' -H 'tenant:default' -d '{"jdbcConnectionString":"jdbc:h2:tcp://localhost/~/test/test2","decryptedUsername":"user","decryptedPassword":"pass","vendor":"ORACLE", "name" : "localhost-h2"}'
{ "id":419, "username":"user.test", "email":"noreply@knowledge-values.com", "roles":[{"id":2,"role":"USER","description":"Allows access to Match Web Player for consultation of all configured KBAs"}], "attributes":[{"attribute":{"id":14,"name":"Company","description":"Needed for WISKit","unique":false,"mandatory":false},"value":null},{"attribute":{"id":22,"name":"AT1","description":"AT1","unique":false,"mandatory":false},"value":null},{"attribute":{"id":28,"name":"Profession","description":"What is your job?","unique":false,"mandatory":false},"value":null},{"attribute":{"id":11,"name":"ID","description":"This is your company ID number","unique":true,"mandatory":false},"value":null},{"attribute":{"id":33,"name":"givenName","description":null,"unique":false,"mandatory":false},"value":null},{"attribute":{"id":26,"name":"Voornaam","description":"something","unique":false,"mandatory":false},"value":null},{"attribute":{"id":27,"name":"New attribute","description":"Testing creation of attributes","unique":false,"mandatory":false},"value":null},{"attribute":{"id":24,"name":"Naam","description":"Volledige naam adviseur","unique":false,"mandatory":true},"value":"User"},{"attribute":{"id":25,"name":"Achternaam","description":"Something","unique":false,"mandatory":false},"value":"Test222"},{"attribute":{"id":13,"name":"Role","description":"Role for a user","unique":false,"mandatory":false},"value":"Adviseur"},{"attribute":{"id":15,"name":"Logo","description":"Needed for WISKit","unique":false,"mandatory":false},"value":null},{"attribute":{"id":32,"name":"testToBeRemoved","description":"testing process","unique":true,"mandatory":false},"value":null}], "accountAccess":"ENABLED", "nonPersonalAccount":false, "deleted":false, "passwordExpired":true, "passwordChangeDate":null, "isActive":true, "password":null }
Example response
{
"result":"ok"
}