table of contents
KOPANO-ADMIN(8) | Kopano Core user reference | KOPANO-ADMIN(8) |
NAME¶
kopano-admin - Manages Kopano users and stores.
SYNOPSIS¶
kopano-admin ACTION [OPTION...]
DESCRIPTION¶
This tool can be used to create the public store and to add, update and remove users from Kopano. The storage server must be running for kopano-admin to work.
If no action is given, a listing of the possible parameters is printed. When invalid actions or not enough options for an action are given, an error message is printed.
When using LDAP as the users source, create, modify and delete actions are done in the LDAP tree and not using the kopano-admin tool. Please see the EXTERNAL USERS() section for more information.
ACTIONS¶
kopano-admin needs an action command with the appropriate options. Valid actions are:
-s
-c username
-d username
-u username
--enable-feature and --disable-feature to enable or disable specific features for users.
This action is also required for all options to control the autoaccept of meeting requests. See the --mr-accept, --mr-decline-conflict and --mr-decline-recurring options.
-g groupname
--update-group groupname
-G groupname
-b username
-B username
-l, --list-users
-L, --list-groups
--list-companies
This option is only available in multi-tenancy Kopano
--details name
Note: This function does not synchronize with the external user plugin. Thus changes from e.g. LDAP will not be set during this function.
--type type
--create-company companyname
Use: --qo, --qw, --qs, --qh to set quota levels for the tenant.
Use: --udqo, --udqw, --udqs, --udqh to set the default quota levels for the users inside the tenant.
This option is only available in multi-tenancy Kopano.
--update-company companyname
Use: --qo, --qw, --qs, --qh to set quota levels for the tenant.
Use: --udqo, --udqw, --udqs, --udqh to set the default quota levels for the users inside the .
This option is only available in multi-tenancy Kopano.
--delete-company companyname
This option is only available in multi-tenancy Kopano.
--set-system-admin companyname
Please be aware that this option does not provide the user with administrator privileges. The system administrator is considered the main contact person for a company, it will for example be used as default sender for quota warning emails.
This option is only available in multi-tenancy Kopano.
--add-to-viewlist companyname
This option is only available in multi-tenancy Kopano.
--del-from-viewlist companyname
This option is only available in multi-tenancy Kopano.
--list-view
This option is only available in multi-tenancy Kopano.
--add-to-adminlist username
Users can only be administrator over a different company when they have also been granted view privileges, can be granted by using the --add-to-viewlist.
This option is only available in multi-tenancy Kopano.
--del-from-adminlist username
This option is only available in multi-tenancy Kopano.
--list-admin
Users can only be administrator over a different tenant when they have also been granted view privileges, can be granted by using the --add-to-viewlist.
This option is only available in multi-tenancy Kopano.
--add-userquota-recipient user
--del-userquota-recipient user
--list-userquota-recipients
--add-companyquota-recipient user
--del-companyquota-recipient user
--list-companyquota-recipients
--list-sendas user
--clear-cache
Optionally use --clear-cache= to specify a set of purge options. The following options can be used:
--purge-softdelete days
--purge-deferred
--list-orphans
--hook-store store-guid
You can copy an orphaned store to the public store. Use the --copyto-public to copy the store to the public folder named 'Admin/deleted stores'. This folder is then only visible for users with Kopano admin privileges.
To hook a public store, use --type group/company to influence the name type in the -u switch.
To hook an archive store, use --type archive.
--remove-store store-guid
--create-store username
--unhook-store username
To unhook a public store, use the --type group/company option to influence the name type in the username argument. Use a company name with type company or 'Everyone' with type group to unhook the public.
To unhook an archive store, use --type archive.
--force-resync usernames
--reset-folder-count username
--user-count
OPTIONS¶
The options used by actions are as follows:
--verbose level
-v
-U 'new username'
-p, --password password
-P, --password-prompt
-f, --fullname 'full name'
-e, --email 'email address'
-a [yes|y|1|2 / no|n|0]
It is also possible to pass 2 as administrator level, this will make the user a system administrator who can create/modify/delete companies.
-n [yes|y|1 / no|n|0]
--qo [yes|y|1 / no|n|0]
--qw value in Mb
--qs value in Mb
--qh value in Mb
--udqo [yes|y|1 / no|n|0]
--udqw value in Mb
--udqs value in Mb
--udqh value in Mb
-i groupname
-I companyname
--mr-accept [yes|y|1 / no|n|0]
--mr-decline-conflict [yes|y|1 / no|n|0]
--mr-decline-recurring [yes|y|1 / no|n|0]
--add-sendas sender
--del-sendas sender
--lang language
--utf8
Other options to control the connection to the kopano-server are:
--host, -h path
--node name
--config file
Default: /etc/kopano/admin.cfg
CONFIG¶
Normally, no configuration file is used or required. If the file /etc/kopano/admin.cfg exists, it is used as configuration file, but no error checking is performed. This way, you can use any config file from a kopano program, e.g. kopano-spooler or kopano-dagent, to load SSL settings.
The following options can be set in the configuration file:
server_socket
Default: file:///var/run/kopano/server.sock
sslkey_file
Default: value not set.
sslkey_pass
Default: value not set.
EXAMPLES¶
For creating a user:
kopano-admin -c loginname -p password -f 'Firstname Lastname' -e f.lastname@tenant.com
For creating a non-login store:
kopano-admin -c loginname -p password -f 'Firstname Lastname' -e f.lastname@tenant.com -n 1
For modifying the password and e-mail address:
kopano-admin -u loginname -p newpass -e fistname@tenant.com
For deleting a user:
kopano-admin -d loginname
For adding a user to a group:
kopano-admin -b loginname -i groupname
For setting a specific quota level for a user. Warning level to 80 Mb, soft level to 90 Mb and hard level to 100 Mb:
kopano-admin -u loginname --qo yes --qw 80 --qs 90 --qh 100
For automatically accepting meeting requests for a user or resource:
kopano-admin -u loginname --mr-accept y --mr-decline-conflict y --mr-decline-recurring n
EXTERNAL USERS¶
When the users are located in an external database, and the storage server is configured to use these users, a lot of commands from the kopano-admin tool make no sense anymore. An example of an external database, and currently the only option, is an LDAP database.
The following actions can still be used, all other commands will be automatically triggered by changing the values in the LDAP server.
-s: create public store.
-l: list users known to Kopano.
-L: list groups known to Kopano.
--details username: show user details.
--sync: trigger full synchronization for users and groups from the external source.
When the users change in the external source, the Kopano server instantly synchronizes to these changes. There are two exceptions that need some extra attention, and these are when users are created or deleted. When a user is created, the createuser_script from the kopano-server.cfg(5) will be started to create a store for a user. Likewise, when deleting a user, the deleteuser_script from the kopano-server.cfg(5) will be started to delete a store from a user. The same is valid for creating and deleting a group and tenant, starting the creategroup_script/createcompany_script and deletegroup_script/deletecompany_script scripts respectively.
DIAGNOSTICS¶
Could not create user/store/public store.
When you get this error, make sure the storage server and database server are running.
AUTHOR¶
Written by Kopano.
SEE ALSO¶
kopano-server(8), kopano-server.cfg(5)
November 2016 | Kopano 8 |