<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="https://uname.pingveno.net/blog/index.php/feed/rss2/xslt" ?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title># uname -a - Mot-clé - confidential</title>
    <link>https://uname.pingveno.net/blog/index.php/</link>
    <atom:link href="https://uname.pingveno.net/blog/index.php/feed/tag/confidential/rss2" rel="self" type="application/rss+xml" />
    <description>Le blog de uname.pingveno.net</description>
    <language>fr</language>
    <pubDate>Sun, 17 May 2026 16:16:57 +0200</pubDate>
    <copyright>Mathieu Pellegrin</copyright>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <generator>Dotclear</generator>
          <item>
        <title>Owncloud : batch set calendar events to &quot;CONFIDENTIAL&quot;</title>
        <link>https://uname.pingveno.net/blog/index.php/post/2015/11/09/Owncloud-%3A-batch-set-calendar-events-to-CONFIDENTIAL</link>
        <guid isPermaLink="false">urn:md5:69e99ed872eaaef4496117481ef71ec0</guid>
        <pubDate>Mon, 09 Nov 2015 13:11:00 +0100</pubDate>
        <dc:creator>Mathieu</dc:creator>
                  <category>Hacks</category>
                          <category>calendar</category>
                  <category>confidential</category>
                  <category>owncloud</category>
                  <category>public</category>
                <description>&lt;p&gt;You are sharing your owncloud calendar with others. Good.&lt;/p&gt;&lt;p&gt;You don&amp;#8217;t want others to see the details of your events, you only want to share the fact that your are &amp;#8220;not available&amp;#8221;, so you set the event to &amp;#8220;CONFIDENTIAL&amp;#8221;.&lt;/p&gt;&lt;p&gt;By default, Owncloud sets the events to &amp;#8220;PUBLIC&amp;#8221; (visible by anyone who have read access).&lt;/p&gt;&lt;p&gt;&lt;strong&gt;How to change all the default public events to &amp;#8220;CONFIDENTIAL&amp;#8221;&amp;#160;?&lt;/strong&gt; Here is how.&lt;/p&gt;          &lt;p&gt;The iCal standard used by Owncloud sets three event types&amp;#160;:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;PUBLIC&amp;#160;: the event is fully visible by anyone.&lt;/li&gt;&lt;li&gt;CONFIDENTIAL&amp;#160;: the event is fully visible to owner, but only shows time segment for those who have a read access to the calendar.&lt;/li&gt;&lt;li&gt;PRIVATE&amp;#160;: the event is only visible to owner and fully hidden to others (no time segment).&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Owncloud stores the events in its database in iCal format, setting the value &amp;#8220;CLASS&amp;#8221; to the privacy level if needed, and nothing if not specified.&lt;/p&gt;&lt;p&gt;So, let&amp;#8217;s change all the default events to CONFIDENTIAL&amp;#160;:&lt;/p&gt;&lt;pre&gt;UPDATE clndr_objects SET calendardata = REPLACE(calendardata, 'END:VEVENT', 'CLASS:CONFIDENTIAL
END:VEVENT') WHERE objecttype='VEVENT' AND calendardata NOT LIKE '%CLASS:CONFIDENTIAL%' AND calendardata NOT LIKE '%CLASS:PRIVATE%' AND calendardata NOT LIKE '%CLASS:PUBLIC%';&lt;/pre&gt;&lt;p&gt;Note that the new line after &amp;#8220;CONFIDENTIAL&amp;#8221; is &lt;strong&gt;mandatory&lt;/strong&gt; and should not trigger the query until you type the &amp;#8221;&amp;#160;; &amp;#8221; and press enter.&lt;/p&gt;&lt;p&gt;Note that it will change the events &lt;strong&gt;for all users&lt;/strong&gt;.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Backup your database before executing the query&lt;/strong&gt;.&lt;/p&gt;</description>
        
              </item>
      </channel>
</rss>
