Hi All,
I want to create users from the csv file which will be available on alfresco repository. I created a JAVA Webscript for that but I am not able to set its account enabled through java. Like in javascript
var testUser = people.createPerson("spm", "Joe", "User", "joe.user@alfresco.com", "spm", true, true);
the second last argument refers to the setAccountEnabled param but in java we need to create Map instead of passing the value in params like
Map userMap = new HashMap();
userMap.put(ContentModel.PROP_USERNAME, user.getUserName());
userMap.put(ContentModel.PROP_FIRSTNAME, user.getFirstName());
userMap.put(ContentModel.PROP_LASTNAME, user.getLastName());
userMap.put(ContentModel.PROP_EMAIL, user.getEmailAddress());
userMap.put(ContentModel.PROP_PASSWORD, user.getPassword());
So here I am not able to find the QName for the setAcountEnabled property and because of that users are created in alfresco but I am not able to login through their id.
Is there any possible way to do that?
Thanks and Regards,
Neha