sabre-io / Baikal

Baïkal is a Calendar+Contacts server
https://sabre.io/baikal/
GNU General Public License v3.0
2.42k stars 281 forks source link

Shared address book with read-only access #1224

Open brinza888 opened 7 months ago

brinza888 commented 7 months ago

Problem you are having: Can't find any straightforward explanation of how to make shared address book. The goal is to have two users:

Or any other structure that will behave similar. Of course I was searching a lot in this repository and in sabre-io/dav. Found only solution for the same issue with calendars, but my goal is firstly to create shared address book. Since I am running this app in Docker and do not fully understand PHP code I can't dive into complicated configuration. Maybe there is easier way to implement my idea using only database and ACLs?

Thank u in advance! Sorry if I choose issue type wrong.

Michael-81 commented 7 months ago

I am also interested in a solution to the problem. Read/write permissions for some people and read-only permissions for others.

Sharing contacts with others is possible via the database. Copy or duplicate the line of the respective address book. The "PrincipalURI" - "URI" of the person to be authorized, which is located in the principals table, must now be replaced by the other person.

Unfortunately, I have not yet managed to reset the read and write permissions via the database, possibly by adding columns to a table.

Does anyone have any experience?

michael-724 commented 6 months ago

I'm looking for exactly the same thing. Share contacts with read-only permission for our field staff.

We are currently sending new contacts and updates to every employee via WhatsApp. It's a mess. I hope for a solution with Baikal.

ulfgebhardt commented 4 months ago

I am also interested in a solution to the problem. Read/write permissions for some people and read-only permissions for others.

Sharing contacts with others is possible via the database. Copy or duplicate the line of the respective address book. The "PrincipalURI" - "URI" of the person to be authorized, which is located in the principals table, must now be replaced by the other person.

Unfortunately, I have not yet managed to reset the read and write permissions via the database, possibly by adding columns to a table.

Does anyone have any experience?

@Michael-81 can you elaborate how you share contacts? I can only get calendar sharing, not contacts.

ulfgebhardt commented 4 months ago

I figured it out. You can use .../otheruser/bookname as uri in addressbooks to give full read/write access.

Tho I could not manage to actually write to that addressbook successfully - my local contacts always get deleted. Im abandoning this path and use a specific account dedicated to share things.