Added api method for listing groups of a user