Add Contact ID in the list of columns when you export the attendees list.