| Author |
PumaMissingAccessRightsException
|
|
|
| I am trying to get the groupId of the logged in user in the action class of a struts portlet application using the puma api. the code snippet is
List group = (List)pSession.getAttribute("groupID");
Iterator grpItr = group.iterator();
while(grpItr.hasNext())
{
HashMap mapobj;
Group grp = (Group)grpItr.next();
mapobj=(HashMap)pumaPrfl.getAttributes(grp,attributeKeyList);
groupID = (String)mapobj.get("cn");
grpIdList.add(groupID);
System.out.println(groupID);
}
PumaProfile.getAttribute(-,-) throws me a
PumaMissingAccessRightsException if the logged in user belongs to a group other than wpsadmins.
How to resolve this exception and get the groupId of the logged in user.
Anyone with a solution please respond at the earliest.
Rahul
| |
|
| You can avoid this exception by giving "User" access to the USER GROUP Virtual Resource for "All Authenticated Users" or "All Portal User Groups" groups.
This gives all users access to view all the user groups.
| |
| bn_shyam 2006-09-22, 1:25 pm |
| Hey did you find the answer?
Shyam
|
|
|
|