Added implementation for getting groups of user