only retrieve user groups if requested so.

Signed-off-by: abbr <wenfred@gmail.com>