Hello

There is no documentation on sogo-tool, except the help texts you get,
when not using complete sogo-tool commands.


For changing display name of calendars you have to get and set
user-preferences for key "Calendar" with sogo-tool.

1) Subscribe the calendar from owner-user to dest-user.
2) Get current calendar settings from dest-user:

/usr/sbin/sogo-tool user-preferences get settings dest-user Calendar|sed
-e 's/^\([^:]*\): \(.*\)$/{\"\1\": \2}/' |python3 -m json.tool
>dest-userCalendar.json

The sed command is only making the output valid JSON by adding a pair of
double quotes around the first key and a pair of curly braces around the
whole output.
The call of json.tool will pretty print the JSON, in order to make it
more readable.


3) Change display name of subscribed calendar in section
"FolderDisplayNames" in dest-userCalendar.json

e.g. change from
                "owner-user:Calendar/personal": "Personal Calendar"
to
                "owner-user:Calendar/personal": "Owner-user-Name Personal 
Calendar"


4) Set this change for dest-user:

/usr/sbin/sogo-tool user-preferences set settings dest-user Calendar -f
dest-userCalendar.json


With that approach you can set all preferences for a calendar like
sorting, colour and modification notifications etc.
Just see the dest-userCalendar.json for possible settings.


The ACLs (Access Control Lists) settable to calendars are equal to the
ones in webinterface.
You can set privileges based on the confidentiality levels "Public",
Confidential" and "Private".
Those privileges in ascending order are: "DAndTViewer", "Viewer",
"Responder", "Modifier".
Each privilege contains all lesser privileges.
This means privilege "Responder" also includes privileges "DAndTViewer"
and "Viewer".
So if you want to allow someone to read, respond and modify all existing
public events in a calendar, you have to give this someone the privilege
"PublicModifier" on that calendar.

There are also 2 privileges, which are not influenced by confidentiality
levels.
Those are "ObjectCreator" and "ObjectEraser".
With those someone can create new events and delete existing events.

That*s all ;-)
Hope this makes it a bit clearer.


Kind regards,
Christian Mack

Am 17.12.21 um 12:03 schrieb Claus (c3...@mail77.eu):
> 
> Hello,
> 
> I want to share a personal calendar of a user to somebody else. I can do
> this via the webinterface as superuser. However, I cannot add the
> subscription for somebody else. For this, I can use the sogo tool e.g.:
> 
> sudo -u sogo sogo-tool manage-acl subscribe owner-user Calendar/personal
> dest-user
> 
> I also tried with "AuthorizedSubscriber":
> sudo -u sogo sogo-tool manage-acl subscribe owner-user Calendar/personal
> dest-user AuthorizedSubscriber
> 
> The personal calendar of the owner shows up at the destination user,
> however it does not add the owner information. This means that the
> destination user has 2 calendars which are called the same "Personal
> Calendar".
> 
> If the destination user searches and subscribes the calendar of the
> owner via the webinterface, the shared calendar shows up correctly with
> name. (however, I want that for users the new calendar shows up
> automatically, most users will not know how to find those calendars,
> even with the webinterface).
> 
> Please find the example attached. (I'm using the latest 5.3 of 2 days ago).
> 
> Can somebody explain me if this can be fixed with more complete/correct
> sogo-tool parameters?
> 
> I would also like to know if there is more documentation (or more
> examples) available for sogo-tool? I didn't find anything, and I'm not
> sure I completely understand the different rights described here
> https://github.com/inverse-inc/sogo/blob/master/SoObjects/Appointments/product.plist
> or the general usage here
> https://github.com/inverse-inc/sogo/blob/master/Tools/SOGoToolManageACL.m
> Also via google I do find very little information on examples of other
> users using sogo-tool.
> 
> 
> thank you, and kind regards,


-- 
Christian Mack
Universität Konstanz
Kommunikations-, Informations-, Medienzentrum (KIM)
Abteilung IT-Dienste Forschung und Lehre
78457 Konstanz
+49 7531 88-4416

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to