Dynamically read the group id from the event.