Add groups support for permissions.