Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Not able to create user using AEM User Module

Avatar

Level 9

Hi All,

When i am creating user in AEM's user module ,i am seeing below exception in error.log and hence new user is not being created.If anyone encountered problem please help me.

 

11.04.2014 13:02:41.868 *ERROR* [172.19.238.171 [1397239361865] GET /wcm/bin/security/authorizables.json HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException javax.jcr.ItemNotFoundException: failed to build path of 4cf63681-514f-3ec1-bdaf-1c5bd873c557: 07902d15-3feb-41f2-a8c8-ecde30ee5229 has no child entry for 4cf63681-514f-3ec1-bdaf-1c5bd873c557

                at org.apache.jackrabbit.core.HierarchyManagerImpl.buildPath(HierarchyManagerImpl.java:291)

                at org.apache.jackrabbit.core.CachingHierarchyManager.buildPath(CachingHierarchyManager.java:210)

                at org.apache.jackrabbit.core.HierarchyManagerImpl.getPath(HierarchyManagerImpl.java:395)

                at org.apache.jackrabbit.core.CachingHierarchyManager.getPath(CachingHierarchyManager.java:244)

                at org.apache.jackrabbit.core.ItemImpl.getPrimaryPath(ItemImpl.java:188)

 

Thanks,

G.K.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Try creating a User using this API:

http://jackrabbit.apache.org/api/2.0/org/apache/jackrabbit/api/security/user/UserManager.html

Here is a community article that retrives users using this API:

http://helpx.adobe.com/experience-manager/using/developing-aem-osgi-bundles-jackrabbit.html

It retrieves users using this API from within an OSGi bundle. However - once you learn how to use this API - you can just as easily create a new user. 

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Try creating a User using this API:

http://jackrabbit.apache.org/api/2.0/org/apache/jackrabbit/api/security/user/UserManager.html

Here is a community article that retrives users using this API:

http://helpx.adobe.com/experience-manager/using/developing-aem-osgi-bundles-jackrabbit.html

It retrieves users using this API from within an OSGi bundle. However - once you learn how to use this API - you can just as easily create a new user.