AnsweredAssumed Answered

create User in alfresco by OpenCMIS or java API

Question asked by wolfateh on Sep 20, 2012
Latest reply on Sep 24, 2012 by jpotts
hi all
I build web application using alfresco-community-4.0.e,OpenCMIS and primefaces as user interface
i need to create user in alfresco programmatically, i try to create user by the following code

> Blockquote

if (!personService.personExists("tuser1")) {
          personService.createPerson(createDefaultProperties("tuser1", "Test", "User1", "tuser1@localhost", "password"));
          if (logger.isDebugEnabled()) logger.debug("Created tuser1 person");
       }
       
        if (!personService.personExists("tuser1")) {
          personService.createPerson(createDefaultProperties("tuser1", "Test", "User1", "tuser1@localhost", "password"));
          if (logger.isDebugEnabled()) logger.debug("Created tuser1 person");
       }

> Blockquote

but i am facing problem with the authentication

i made class for alfresco authentication throw the openCMIS and it work fine for create my custom content and some custom  action
any idea why it now working with creating user or any other code to build the user programmatically?

Outcomes