Auto generate group id