vdirsyncer
vdirsyncer copied to clipboard
Sync Google Contacts with Nextcloud - No Groups
vdirsyncer version: 0.16.7 Python version: 3.8.2
I synchronize my Google contacts with my NextCloud. Works well. The only problem is that the groups are not synchronized.
Key issue is that groups are not fetched.
Not sure if the Google API exposes these, if it does, we should fetch them, otherwise, document the caveat.
This seems to be the related issue at Google: https://issuetracker.google.com/issues/36761530
Since there have been no real updates for 6 years now, I assume this is labeled as "wontfix" internally or has a veeeery low priority for them.
One workaround would be to use the people API to retrieve the contact groups and merge this information into the vCard files, but not sure whether it's worth the effort (and also this makes syncing much slower)...
Recent Google Contacts showing no Groups, but Labels instead. Also no CATEGORIES in .vcf files created by vdirsyncer
I have tested Google Contacts Web and following:
BEGIN:VCARD
VERSION:3.0
UID:f338aca8-4697-472e-9603-c07ce270fd34
CATEGORIES:category Test
N:;;;;
FN:test
REV:20170215T095802Z
END:VCARD
vcard imported successfully with Label "category Test". Also Successfully exported with the same CATEGORIES. Result:
BEGIN:VCARD
VERSION:3.0
FN:test
N:;test;;;
CATEGORIES:category Test,Imported on 1/11,myContacts
END:VCARD
It could be Google Contacts API limitation or vdirsync.
Based on that last comment, is there anything to be done for this issue, or are groups properly exported as categories.