For the current user I can use SPServices + GetGroupCollectionFromUser. But for other users I would need the login name, which I don't have. I need to query by user name.
Is there an alternative to GetGroupCollectionFromUser that takes a user name? Or some other way to do this?
It doesn't have to be through SPServices, using the REST API is also fine.