Re: how to create a calendar for a user as admin ?

Cyril ZORMAN <[email protected]> Thu, 4 Sep 2025 11:37:43 +0200
Newsgroups gmane.mail.imap.cyrus
Message-ID <[email protected]>
Thansk for your answers

The information to use  Authorize-As header need to have murder

But with imap it work

|x CREATE #calendars/shared (TYPE CALENDAR)


Thanks Again|


Le 31/08/2025 à 12:40, Дилян Палаузов a écrit :
> Hello,
>
> you are not stating the version of Cyrus IMAP you use, andhttps://github.com/cyrusimap/cyrus-imapd/issues/3157 fixes related problems on the 3.2 branch.
>
> You might need the Authorize-As header, cfhttps://github.com/cyrusimap/cyrus-imapd/issues?q=authorize-as and in particularhttps://github.com/cyrusimap/cyrus-imapd/issues/5035#issuecomment-2358627690 .
>
> The problem might be that the ACLs do not allow for the admin user to GEThttp://localhost:8008/dav/calendars/user/myuser@mydomain/ , so you have to grant permissions for reading the upper mailboxes in cyradm.  If GET works, it might work if you visit with browserhttp://localhost:8008/dav/calendars/user/myuser@mydomain/ , authenticate as admin user on the 401 response, and then create calendars with the mouse.
>
> You can also create calendars over IMAP/cyradm, as described athttps://github.com/cyrusimap/cyrus-imapd/issues/2373#issuecomment-415738943 .
>
> Greetings // Дилян
>
> -----Original Message-----
> From:[email protected]
> Reply-To: Info<[email protected]>
> To: Info<[email protected]>
> Subject: how to create a calendar for a user as admin ?
> Date: 29/08/25 13:26:55
>
>
> Hello
>
> I want as admin to create a calendar for a user.
>
> I've thought that the best solution was to use MKCALENDAR via caldav
>
> But I did not  manage to do it with the  admin (it work using the user login password)
>
> I've tried different URLs but always get a 403 Forbidden
>
> Here is what i've  tried
>
>
>
> curl -u 'myadmin@mydomain:mypassword' --header "Content-Type:text/xml"  -d @mkcal1.xml -X MKCALENDARhttp://localhost:8008/dav/calendars/user/myadmin@mydomain/[email protected]
>
>
> curl -u 'myadmin@mydomain:mypassword' --header "Content-Type:text/xml"  -d @mkcal1.xml -X MKCALENDARhttp://localhost:8008/dav/calendars/user/myuser@mydomain/Default
>
>
>
>
> I 'm using this for my mkcal1.xml
> <?xml version="1.0" encoding="utf-8" ?>
>     <C:mkcalendar xmlns:D="DAV:"
>                   xmlns:C="urn:ietf:params:xml:ns:caldav">
>       <D:set>
>         <D:prop>
>           <D:displayname>Calendar</D:displayname>
>           <C:calendar-description xml:lang="fr">events</C:calendar-description>
>           <C:supported-calendar-component-set>
>             <C:comp name="VEVENT"/>
>           </C:supported-calendar-component-set>
>         </D:prop>
>       </D:set>
>     </C:mkcalendar>
>
>
> the ACL are set like this
>
>
> user/myuser/#calendars@mydomain
>      myadmin@mydomain lrswipkxtecdan9
>       myuser@mydomain lrswipkxtecdan
>
>
>
>
>
>
>
>
> Cyrus / Info / seediscussions +participants +delivery options
> Permalink
------------------------------------------
Cyrus: Info
Permalink: https://cyrus.topicbox.com/groups/info/T30a67b2b3c24ef11-M3a4f8ce36f0896ff374310dd
Delivery options: https://cyrus.topicbox.com/groups/info/subscription