[Help] NC11 + Mac Sierra Contact Sync URL

Hi Everyone…

Not sure if this a bug in NC, but the URL displayed under Contact > Settings > Address book (name) > Show URL doesn’t work for Contacts app users (MacOS Sierra). Through some trial and error and reverting back to my OC I concluded the following:

WORKS: https://FQDN/remote.php/dav/principals/users/USER@TLD.COM/
DOESN’T WORK: https://FQDN/remote.php/dav/addressbooks/users/USER@TLD.COM/contacts/

NOTE1: “contacts” above is the address book (or group) as named in NC.
NOTE2: As per prior OC versions, NC11 doesn’t seem to support groups / multiple address books under the same principal (i.e. account).

The “DOESN’T WORK” URL is displayed in the NC Contacts web console. I recall back in the OC days there were distinct URLs for OS X/IOS and everything else.

Would it be possible to simplify enrollment by performing server-side checks to determine client platform and redirect accordingly?

Thank you.

No bug in NC.

Apple (both macOS and iOS) need the principal URL.
Other clients need the address book url.

also see https://docs.nextcloud.com/server/11/user_manual/pim/sync_osx.html :wink:

Would it be possible to simplify enrollment by performing server-side checks to determine client platform and redirect accordingly?

No, because macOS Contacts will also access https://FQDN/remote.php/dav/addressbooks/users/USER@TLD.COM/contacts/. And generally returning different results for different user agents is a very ugly hack.

btw, there are plans for providing provisioning profiles for apple devices (https://github.com/nextcloud/server/issues/1434)
So no more configuring manually, but just downloading the profiles.

Provisioning profiles sound great – looking forward to them.

Different URLs threw me off and I remember in OC there were two URLs listed – one for Apple devices / OSes the other for everyone else.

Thanks for clarifying.