I wanted to get the list which includes the all group and roles of a user in Oracle Universal Content management.
ex: If user is weblogic, Group :Administrtor Role :manager,Admin ,etc
I tried as :
Subject subject = Security.getCurrentSubject();
Set prin=subject.getPrincipals();
But got only group with this .Please provide a code snippet to do this.
UserData userData = (UserData)context.getCachedObject("TargetUserData"); Vector roleList = SecurityUtils.getRoleList(userData);