Setting birthdates via user provisioning API

  • Nextcloud Server version (e.g., 29.x.x):
    • Nextcloud Hub 10 (31.0.10)
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Storage Share (Managed Nextcloud by Hetzner)

I am currently trying to provision users on my new nextcloud instance and I want to use the “Contact Birthdays” feature of the calendar app

So I thought the easiest would be to just add the birthday from my CSV via CURL calls to the API for each user like so:

curl -X PUT \
    -u "<APIUser>:<APIPassword>" \
    -H "OCS-APIRequest: true" \
    -d "key=birthdate" \
    -d "value=1990-01-01" \

      "https://<DOMAIN>/ocs/v1.php/cloud/users/<USERID>"

But unfortunately this only works for my own userid? As soon as I want to update a different user account apart from mine (even though I am admin) I get back **status code 113 – which means I am not allowed to change the birthdate
**
So my question is now: How can I provision the user accounts with the correct birthdates?

Or is there any other easy option how to handle birthdates in Nextcloud? Long term goal ist to have a widget with past/upcoming birthdates I wanted to implement on top of the “Contact Birthdays” calender feature.