AnsweredAssumed Answered

Need help on User Creation

Question asked by oluwasegzy on Aug 26, 2011
Latest reply on Sep 6, 2011 by scouil
Please i need somebody to tell me what am doing wrong to create a new user

here is my code

it all the properties of the user in a Map below

properties.put(ContentModel.PROP_USERNAME, username);
         properties.put(ContentModel.PROP_FIRSTNAME, fName);
         properties.put(ContentModel.PROP_LASTNAME, lName);
         properties.put(ContentModel.PROP_ADDRESSEE, address);
         properties.put(ContentModel.PROP_EMAIL, eMail);
         properties.put(ContentModel.PROP_MOBILE, mobile);
         properties.put(ContentModel.PROP_ACCOUNT_EXPIRES, Boolean.valueOf(false));
         properties.put(ContentModel.PROP_CREDENTIALS_EXPIRE, Boolean.valueOf(false));
         properties.put(ContentModel.PROP_ENABLED, Boolean.valueOf(true));
         properties.put(ContentModel.PROP_ACCOUNT_LOCKED, Boolean.valueOf(false));

i then create the person


only to check my Alfresco server to see the user created but cannot login with the username and password credentials

what could be wrong……