You cannot get the UserManager from Framework.getService(). It will return null 
since it is not a DefaultComponent.

Use the below code.

UserService userService = Framework.getRuntime().getComponent(UserService.NAME);
UserManager userManager = userService.getUserManager();

Thanks,
Hari
--
Posted by "hariprashath" at Nuxeo Discussions <http://nuxeo.org/discussions>
View the complete thread: 
<http://www.nuxeo.org/discussions/thread.jspa?threadID=2148#8052>
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Reply via email to