[GeoNetwork-devel] can we get user info from username, not user id?

Hi,

I found services to get user’s info or groups list using xml.usergroups.list etc.But these require user id in request.

But if I don’t have id, just have username, then I don’t see a service in GN which can fetch groups list of user based on username.

(Note: I can think of a hack can be a follows
using xml.info?type=users
I get info about all users in xml format. The info for each user has username and the id.
I parse the username, match it with what I have, then fetch the corresponding id and use that id in the direct service available - xml.usergroups.list
this is ofcourse much work!)

Any suggestions? may be an easier hack :slight_smile:

Thanks a lot

Ameet C

Sr. System Analyst, kCube (India)