Utility to login a user and get a list of groups the user is a member of