Powered By Blogger

Tuesday, July 6, 2010

Alfresco users and Groups

1. Getting the logged in user

final String _user = AuthenticationUtil.getRunAsUser();


2. Getting the usernode ref from username

final NodeRef _userRef = serviceRegistry.getPersonService().getPerson(_userName);


3. Getting the groups the user belonging to user

final Set _groupSet = this.getAuthorityService().getAuthoritiesForUser(_user);





No comments:

Post a Comment