Hello,

you are not stating the version of Cyrus IMAP you use, and 
https://github.com/cyrusimap/cyrus-imapd/issues/3157 fixes related problems on 
the 3.2 branch.

You might need the Authorize-As header, cf 
https://github.com/cyrusimap/cyrus-imapd/issues?q=authorize-as and in 
particular 
https://github.com/cyrusimap/cyrus-imapd/issues/5035#issuecomment-2358627690 .

The problem might be that the ACLs do not allow for the admin user to GET 
http://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 browser 
http://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 at 
https://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 MKCALENDAR 
http://localhost:8008/dav/calendars/user/myadmin@mydomain/[email protected]


curl -u 'myadmin@mydomain:mypassword' --header "Content-Type:text/xml"  -d 
@mkcal1.xml -X MKCALENDAR 
http://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-M85504f79a38386b293df8398
Delivery options: https://cyrus.topicbox.com/groups/info/subscription

Reply via email to