Does anyone know how to hide the global adressbook from users?
I know there’s a commandline option "–access-global-address-book-disabled <on/off> " that might do the trick, but someone told me that changing OX user accounts from via commandline in univention is “BAD”
The simplest way we’ve found so far is to revoke all access rights as the adressbook’s owner - in this case “oxadmin”. But it would be nice to have a simpler way and just DISABLE it globally.
To disable the global address book, you have to downgrade the OX-account to being only a “Webmail” account (in UMC→Users→_user_→Account→OX Access).
Then you can run on the command line:
/opt/open-xchange/sbin/changeuser -c "$(ucr get ox/context/id)" -A oxadmin -P "$(cat /etc/ox-secrets/context10.secret)" -u <username> --access-global-address-book-disabled on
The next time the user logs in, the global address book will be gone.
I guess my inner-product-manager-self would like to understand what you want to achieve and why? The idea of the global addressbook is, that you have automatically the contact information of everyone in your context/company/family/… (whatever you call your organization). People who should not interact, should maybe not be in the same context… Thus the question.
Best regards,
Christian
Well, basically most people including the senior managers in the organisation want to have ALL their contact details visible to most other users.
But there are also “semi” freelancers which are basicaly thightly integrated into the companies structure in a way that they work part time for and on the companies premises. But at the same time they should not be able to see ALL the contact details of the managers. For Ex. most employees are free to user to use multiple private phone numbers of their managers, while some of them should not. And since there’s no way to hide certain contact fields, we have to hide the complete adresses from them
They have an adress book application which they’d like to get rid of in time, which does exactly this. You can hide single fields on a per user group basis.
2 whom it may concern: I managed my design as follow:
ucr set ox/ModuleAccessDefinitions/oxseforucs_webmail='webmail,publication,globaladdressbookdisabled'
Configured students with OX permission Webmail and I needed 2 set:
/opt/open-xchange/sbin/changeuser -c 10 -A <oxadminuser> -P $(< /etc/ox-secrets/context<contextnumber>.secret) -u <username> --access-global-address-book-disabled on
manually for all students, as the UCR seems not 2 work (i set it to be on the safe side). Also if I change the context and/or ox user details (2 trigger a new user sync) the address book was presented and filled. With the manually set the address book icon still was presented, but no entries anymore. In another test system the icon disappeared. Anyways the students do not have entries anymore.
U can not set access-global-address-book-disabled 2 on if the ox permissions are higher than webmail as the address book is mandatory for groupware.