Hello This works with all supported databases.
In your script you would use /usr/sbin/sogo-tool for getting and setting the current setting for an user.
Example getting current default values for User betty:$ /usr/sbin/sogo-tool user-preferences get defaults betty SOGoCalendarDefaultRoles 2>/dev/null
SOGoCalendarDefaultRoles: ["PublicDAndTViewer", "ConfidentialDAndTViewer"] Example adding "PrivateDAndTViewer" to betty:$ /usr/sbin/sogo-tool user-preferences set defaults betty SOGoCalendarDefaultRoles \ '{"SOGoCalendarDefaultRoles": ["PublicDAndTViewer", "ConfidentialDAndTViewer","PrivateDAndTViewer"]}'
Be aware: This default value will only be used, when the user adds a new calendar.If you want to change the visibility for all already existing calendars, you would need to iterate over all users, get all their calendars. Then iterate over all their calendars and check these settings on them for the "Any Authenticated User".
As an alternative.If you only have a handful users already active in SOGo, you could get SOGoSuperUser and change the settings for your users calendars by hand in the "Administration" section.
Kind regards, Christian Mack Am 04.10.24 um 12:01 schrieb admin ([email protected]):
Hello, Please tell me this solution works with mysql ? ------------------------------------ Pozdrawiam Grzegorz Cimochowski -----Original Message----- From: [email protected] <[email protected]> On Behalf Of Christian Mack Sent: Friday, October 4, 2024 9:29 AM To: [email protected] Subject: Re: [SOGo] outlook 365 and calendar free/busy Hello Of course, but that only is applied to new accounts at creation in SOGo. Set in /etc/sogo/sogo.conf: [...] SOGoCalendarDefaultRoles = ( PublicDAndTViewer, ConfidentialDAndTViewer, PrivateDAndTViewer ); [...] For existing accounts you have to write a script which checks all calendars and enhances them, if not already set. Kind regards, Christian Mack Am 03.10.24 um 11:44 schrieb admin ([email protected]):Wow. Big thx now working perfect. Tell me can I set default values for all users? ------------------------------------ Pozdrawiam Grzegorz Cimochowski -----Original Message----- From: [email protected] <[email protected]> On Behalf Of qhivert Sent: Thursday, October 3, 2024 11:30 AM To: [email protected] Subject: RE: [SOGo] outlook 365 and calendar free/busy Hello, By default, public access share nothing, you have to go to your calendar -> 3 dots on the right -> Sharing... -> Public access And set something else than None Quentin -----Original Message----- From: [email protected] <[email protected]> On Behalf Of "MeA" Sent: jeudi 3 octobre 2024 11:17 To: [email protected] Subject: [SOGo] outlook 365 and calendar free/busy Hi, I have a problem with free/busy in my Outlook. File generated by SOGo from: https://test.xx/SOGo/dav/public/[email protected]/freebusy.ifb BEGIN:VCALENDAR PRODID:-//Inverse inc./SOGo 5.11.0//EN VERSION:2.0 BEGIN:VFREEBUSY ATTENDEE:mailto:[email protected] DTSTAMP:20241003T084456Z DTSTART:20240925T220000Z DTEND:20241009T220000Z END:VFREEBUSY END:VCALENDAR Always is thet same. It doesn't matter if I have 1 or more events. It doesn't matter mail account. When I use other mail address then in file mail address changed but dates are te same. Why? Please help me fix my problem BR
-- Christian Mack Universität Konstanz Kommunikations-, Informations-, Medienzentrum (KIM) Abteilung IT-Dienste Forschung, Lehre, Infrastruktur 78457 Konstanz +49 7531 88-4416
smime.p7s
Description: Kryptografische S/MIME-Signatur
