added get users groups functionality