Add missing cache invalidations in res.group and res.user.

issue3447
review1381002