You need to be logged in into current Xero organization to be able to add contacts to a contact group.
Please refer to Xero documentation for more information Xero API.
Select the rows that you want to upload.
Map column headers to Add Contacts to a Contact Group object fields.
Review import results