AnnexGroup

Documentation

Including external calendars, contacts and tasks

An inclusion keeps an external collection up to date on an ongoing basis: a CalDAV calendar (events and tasks), a CardDAV address book or an ICS/webcal subscription. The target is your own account or a room. Unlike a one-time import, an inclusion stays in place and synchronizes at a fixed interval (default: 15 minutes).

Setting up

Open Included collections (/access/einbindungen), or use the button of the same name inside a room. Enter:

  • Type: CalDAV, CardDAV or ICS/webcal subscription.
  • Address: the https address of the collection. If you give only the address of the server, AnnexGroup looks the collection up through /.well-known/caldav or /.well-known/carddav. If the server has several collections, the first matching one is used; to pick another, enter its address directly. webcal:// is read as https://.
  • User name and password of the remote side. The password is stored encrypted and is never shown again.
  • Target: my account or a room. In a room, only owners and editors can include.
  • Mode: read-only or read and write.

Read-only or read and write

  • Read-only (default) mirrors the remote side. Objects from this inclusion cannot be changed or deleted locally: over DAV the server answers 403, over the API 409, and the web interface shows a notice.
  • Read and write sends local changes and deletions back to the remote side with If-Match. In a room, new objects created after the switch to write mode are sent as well. An ICS subscription is always read-only.

You can change the mode at any time, in the web interface and through the API (users and agent tokens alike). The change applies immediately and is recorded in the audit log with the person, time and old → new value. When switching to read-only, write-backs that are still pending are discarded; the page, or the verworfen field of the API, tells you how many. Nothing is ever sent silently.

Synchronization and conflicts

AnnexGroup uses sync-collection (RFC 6578). If the remote side refuses it, for example the STOREDO Bridge with a 400, it compares the identifiers (ETags) of all objects instead. If the remote side offers an identifier for the whole collection (CTag), AnnexGroup recognises from it that nothing has changed and reloads nothing — even when the remote side assigns new identifiers to unchanged entries on every fetch. ICS subscriptions are read completely, updated without duplicates and cleaned up when entries disappear. Synchronize now starts a run immediately; status, counts and the last error are shown with the inclusion.

If an object changed on both sides (the remote side answers 412), the remote side wins. The case is recorded in the audit log.

API for agents and scripts

curl -X POST https://<server>/api/v1/einbindungen \
  -H "Authorization: Bearer <token>" \
  -d '{"art":"caldav","url":"https://dav.example.org/","benutzer":"u","kennwort":"…","space_id":12,"modus":"nur_lesen"}'

curl -X PATCH https://<server>/api/v1/einbindungen/7 \
  -H "Authorization: Bearer <token>" -d '{"modus":"schreibend"}'

curl -X POST https://<server>/api/v1/einbindungen/7/sync -H "Authorization: Bearer <token>"

Security and limits

  • Only https with certificate verification is accepted. Addresses in your own network, on the server itself or at cloud metadata services are blocked; only the server operator can allow a remote side in a private network.
  • Deleting an inclusion leaves the objects it has taken over in place; on request they are deleted as well.
  • New local objects are sent back only for rooms, not from your personal calendar or address book.
  • Notes collections (CalDAV with VJOURNAL entries only, such as the public notes of a STOREDO Bridge) are taken over as notes, but read-only. The mode always stays "nur_lesen"; taken-over notes cannot be changed or deleted locally.

Something unclear or described wrong? Tell us — we will fix it. Your question shows us where the text falls short.