set groups by id and not by name

Signed-off-by: Mattias Andrée <maandree@operamail.com>