CLI method to hide user from addressbook
-
Hello everyone,
Using latest Kopano packages on Ubuntu, without LDAP, only DB backend.
From reading the help texts of kopano-cli and kopano-admin, I cannot find a method to set a user to ‘hidden from addressbook’.
Can somebody please point me into the right direction?
Many thanks,
SultansOfSwing. -
Hi @sultansofswing,
that is a feature that is only implemented for the ldap backend. An overview/comparison of the different backend can be found at https://documentation.kopano.io/kopanocore_administrator_manual/configure_kc_components.html?highlight=ldap#user-authentication
-
@sultansofswing you can modify DB directly use it at your own risk:
select objectid from objectproperty where propname=‘emailaddress’ and value=‘user@example.com’;
gets you objectid:
±---------+
| objectid |
±---------+
| 1025 |
±---------+update objectproperty set value=1 where objectid=1025 and propname=‘ishidden’;
then do “kopano-admin --sync”