It is possible to assign a device to a group during bulk registration. The name of the device group needs to be passed in a CSV column called “path”.
The following CSV shows you how to assign one device to a group, and not another one:
ID,IDTYPE,CREDENTIALS,NAME,TYPE,SHELL,com_cumulocity_model_Agent,endpoint id,lwm2m server uri,securityMode,registrationLifetime,c8y_GenericUi,bindingMode,path
someclient2,c8y_Id,hexbabe1,someclient2,c8y_lwm2m,1,1,someclient2,coap://13.211.2.225:5683,NO_SEC,43,{},UQ,
someclient3,c8y_Id,hexbabe2,someclient3,c8y_lwm2m,1,1,someclient3,coap://13.211.2.225:5683,NO_SEC,143,{},U,examplegroup
Result: someclient3 will be added to examplegroup.