How to Create Admin Delegation in Zimbra OSE

Posted by

In this article, I will show you how to create another admin in Zimbra OSE with restricted access. New admins will have features to create, delete, modify accounts, distribution lists, and aliases.

1. Create a user from Zimbra Admin or via CLI that will be admin. Or you can change the existing user become an admin

2. Create a script

vi /srv/delegate-admin.sh

Please fill with the following line

#!/bin/bash

# $1 for account
# $2 for domain
# run script ./delegate-admin.sh newadmin@imanudin.net imanudin.net

zmprov ma $1 zimbraIsDelegatedAdminAccount TRUE zimbraAdminConsoleUIComponents accountListView zimbraAdminConsoleUIComponents downloadsView zimbraAdminConsoleUIComponents DLListView zimbraAdminConsoleUIComponents aliasListView zimbraAdminConsoleUIComponents resourceListView

zmprov grr global usr $1 adminLoginCalendarResourceAs
zmprov grr global usr $1 domainAdminZimletRights
zmprov grr domain $2 usr $1 domainAdminRights
zmprov grr domain $2 usr $1 domainAdminConsoleRights
zmprov grr domain $2 usr $1 adminConsoleAliasRights
zmprov grr domain $2 usr $1 modifyAccount
zmprov grr domain $2 usr $1 countAlias
zmprov grr domain $2 usr $1 -configureAdminUI
zmprov grr domain $2 usr $1 -get.account.zimbraAdminConsoleUIComponents
zmprov grr domain $2 usr $1 -get.dl.zimbraAdminConsoleUIComponents
zmprov grr domain $2 usr $1 -set.account.zimbraIsDelegatedAdminAccount
zmprov grr domain $2 usr $1 -set.dl.zimbraIsAdminGroup

Give execution access

chmod +x /srv/delegate-admin.sh

3. Change normal user to admin

su - zimbra
/srv/delegate-admin.sh newadmin@imanudin.net imanudin.net

Now you can login to Zimbra Admin with a new admin account. Below is a screenshot when login with a new admin

Good luck 🙂

Source: Zimbra Wiki

4 comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.