[GeoNetwork-devel] Listing user groups

Anybody can tell me how I can obtain a list of user groups that belongs to
a concrete user from an external application? I need id and description.

Thanks:
     Arturo

Hi Arturo,
The service requires to make a call to:
        <call name="services" class="jeeves.guiservices.services.Get" />
If it does that, it will include the list of services accessible to the user making the request (the one authenticated (or not)).
If you need this information to be available in a service you already use, you can simply add the call in the config.xml file that defines the service. Look at the main.home service to see what it looks like.

Not sure that answers your question?

You could create a new service in config.xml that returns just that information in XML format too. For example:

    <service name="xml.services">
        <call name="services" class="jeeves.guiservices.services.Get" />
    </service>

And don't forget to also add the service to the xml/user-profiles.xml file all the way at the end to ensure all users can access it: :slight_smile:

     <allow service="xml.services"/>

Ciao,
Jeroen

On Mar 26, 2007, at 9:36 AM, Arturo Beltran Fonollosa wrote:

Anybody can tell me how I can obtain a list of user groups that belongs to
a concrete user from an external application? I need id and description.

Thanks:
     Arturo

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
geonetwork-devel List Signup and Options
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork