Hello,
I need to update periodically clover users info or add some new users from some remote service. I’ve tried to use import_server_config for this. And it is ok with user names, domains, passwords and usergroups. But when I try to write email, first name and last name, I receive this error:
[org.xml.sax.SAXParseException; lineNumber: 7; columnNumber: 27; cvc-complex-type.2.4.a: Invalid content was found starting with element ‘{"http://cloveretl.com/server/data":firstName}’. One of ‘{"http://cloveretl.com/server/data":password, "http://cloveretl.com/server/data":passwordA1Digest, "http://cloveretl.com/server/data":userGroups}’ is expected.]
If I leave these fields empty, they become empty on server too.
Here is an example of xml, I send to server
<?xml version='1.0' encoding='UTF-8'?>
<cs:cloverServerConfiguration xmlns:cs="http://cloveretl.com/server/data" cloverVersion="5.2.0.30" exporter="acc_mgmt_test" timeZone="Europe/Moscow" timestamp="2019-08-08T12:50:12.471+03:00">
<cs:usersList>
<cs:user disabled="false">
<cs:username>test_user</cs:username>
<cs:domain>LDAP</cs:domain>
<cs:password>password</cs:password>
<cs:firstName>John</cs:firstName>
<cs:lastName>Doe</cs:lastName>
<cs:email>jonny@mail.com</cs:email>
<cs:userGroups>
<cs:groupCode>admin</cs:groupCode>
</cs:userGroups>
</cs:user>
</cs:usersList>
</cs:cloverServerConfiguration>
We’ve added as many suitable permissions as possible, but they didn’t help.
Is it even possible to change/add such user info (email, first name and last name) using import_server_config? If not is there any other way?
Thankn you