Nextcloud requires the OCS-APIRequest: true header on all OCS API calls as a CSRF protection measure. Without it, the server returns 412 Precondition Failed. The check_admin() method had the header but all other OCS methods (get_users, create_user, enable/disable/ delete_user) were missing it. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
13 KiB
13 KiB