cancel
Showing results for 
Search instead for 
Did you mean: 

How to create User via JCR API ?

edo_v
Champ in-the-making
Champ in-the-making
Hi to all!
This is my first post!  Smiley Very Happy

To create a Folder I use:

//Session Login    
Session session = repository.login(new SimpleCredentials(userId, password.toCharArray()));
//Retrieve parameters
String id, foldername;
//Retrieve root
Node parentNode = session.getNodeByUUID(id);
//Add new Node to Parent
Node contentNode = parentNode.addNode("cm:"+foldername, "cm:folder");
//Set Property File's name
contentNode.setProperty("cm:name", foldername);
//Commit the session
session.save();
//Logout
session.logout();

My actual problem is to create an User!
Must I use the "cm:" string similarly in the first example?
Can you help me?  Smiley Happy

Sorry for my bad English!  Smiley Sad
1 REPLY 1

davidc
Star Contributor
Star Contributor
There isn't support for managing users in the JCR spec.

You can use Alfresco's native API for creating users (or LDAP, Active Directory etc depending on your user management).
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.