AnsweredAssumed Answered

Create users with java API

Question asked by frank83 on Feb 4, 2008
Latest reply on Jul 22, 2013 by priyankasoni
Hi all,
I would to create space users with java services api.
I wrote this code and in alfresco i get new users in space users but when i have to authenticate me with new username and password i can' t enter to Alfresco(username and password unknown).

HashMap<QName, Serializable> properties = new HashMap<QName, Serializable>();
properties.put(ContentModel.PROP_USERNAME, userName);
properties.put(ContentModel.PROP_HOMEFOLDER, home);
properties.put(ContentModel.PROP_PASSWORD, password);
properties.put(ContentModel.PROP_FIRSTNAME, firstName);
properties.put(ContentModel.PROP_LASTNAME, lastName);
properties.put(ContentModel.PROP_EMAIL, email);
properties.put(ContentModel.PROP_ORGID, orgId);
I have to add something? How can i do?Help me please.Thanks