Set correct groupIds in order to get tagIds