cancel
Showing results for 
Search instead for 
Did you mean: 

create User in alfresco by OpenCMIS or java API

wolfateh
Champ in-the-making
Champ in-the-making
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?
2 REPLIES 2

jpotts
World-Class Innovator
World-Class Innovator
Are you able to log in to Share as the test user you created programmatically?

Jeff

jpotts
World-Class Innovator
World-Class Innovator
Ugh, just saw that you also posted this on stackoverflow and it's already been answered.

Here's the link if others need it:
http://stackoverflow.com/questions/12509682/create-user-in-alfresco-by-opencmis-or-java-api

Jeff