Raise Limit of Address Book creation number

Just to help some people that would face the same thing.

By default you can create only 10 address books max in the Contacts app.

Also you cannot create more than 10 address books within 3600 sec.

It’s because of the settings in this file :

/your_nextcloud_folder/apps/dav/lib/CardDAV/Security/CardDavRateLimitingPlugin.php

Modify the values here :

(‘dav’, ‘rateLimitAddressBookCreation’, 10),
(‘dav’, ‘rateLimitPeriodAddressBookCreation’, 3600),

And/or here :
(‘dav’, ‘maximumAdressbooks’, 10);

Not sure but after that I restarted PHP.

1 Like

You should be able to set these values the same way as for Calendar/CalDAV rate limits - e.g. see: https://docs.nextcloud.com/server/latest/admin_manual/groupware/calendar.html#rate-limits

I guess the rate limit section also needs to be added to the Contacts / CardDAV chapter here: Contacts / CardDAV — Nextcloud latest Administration Manual latest documentation

EDIT: PR pending to update docs: feat(adminmanual): Add section about CardDAV rate limits by joshtrichards · Pull Request #12161 · nextcloud/documentation · GitHub

1 Like

Ah yes nice. Yes I have seen the manual about the Calendar but I don’t know what would be the right parameter for the OCC command to apply on the Contacts part, so I had to dig deeper ^^

1 Like