WebSphere Portal Server - I want to find out all users and groups using PUMA SPI.

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > May 2007 > I want to find out all users and groups using PUMA SPI.





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author I want to find out all users and groups using PUMA SPI.

2007-05-29, 1:20 am

I want to find out all users and groups using PUMA SPI. is there any way to find it out? As far as i studied i only got to know that, we can only find the information of loged-in users.
help will be appreciated.

2007-05-29, 7:21 pm

You can get a list of users by doing this:

PumaHome pumaHome = ... //There a few different ways to get PumaHome, depending on your portlet.
PumaLocator pl = pumaHome.getLocator((ServletRequest) request);

users = pl.findUsersByAttribute(attribute, attributeValue);

where attribute is the name of an attribute that wmm knows about and attributeValue is the value you want. Of course you will have to have an attribute on which to search.


There is a corresponding findGroupsByAttribute(attribute, attributeValue);
in PumaLocator.

I haven't tried to find users by a null or empty attribute, but that might work.

Just make sure the user that is signed on to Portal has access to all users and groups. There are two Virtual Resources (Resource Permissions >> Virtual Resources) that you need to add your this user to. For example, wpsadmin can see everybody, but othe
r users cannot.

2007-05-30, 7:17 am

Thanks mark. i will try it.
i have one more doubt. I want to do it using standalone application.
do you have any idea about it ?(which jar's are required etc.)

2007-05-30, 7:21 pm

I don't know off the top of my head, but I do remember seeing something about that. I'll check and see if I can find it for you.

2007-05-31, 1:23 pm

ok Mark. i am waiting for your reply.
I am also trying it. but each time i get new exception.
right now i m stuck at "java.lang.UnsatisfiedLinkError: registerNatives".
i searched a lot but i am not getting the right solution for it.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com