Hi
I am looking for a way to list and export all domains and users. We have thousands of users and several domains. What I am looking for is to list all the domains and users and export to a CSV file. I have tried this "zmprov -l gaa" but this is only for listing users. Some users are active, some are locked, etc and I want all listed. Can someone please, help on how I can do this.
Thanks in advance
Listing domains and users
Re: Listing domains and users
Have you tried an internet search? Use the following terms and try some of the results you'll find:
Code: Select all
"how to" zimbra list all accounts domains
-
- Zimbra Employee
- Posts: 31
- Joined: Tue Aug 09, 2022 12:30 am
Re: Listing domains and users
You can search all accounts using ldapsearch like this
For domains,
Code: Select all
(run as zimbra on ldap server)
$ ldapsearch -LL -x -h `zmhostname` -p 389 -D 'uid=zimbra,cn=admins,cn=zimbra' "(objectClass=zimbraAccount)" -w `zmlocalconfig -m nokey -s zimbra_ldap_password` mail zimbraAccountStatus
Code: Select all
$ zmprov -l gad
or
$ $ ldapsearch -LL -x -h `zmhostname` -p 389 -D 'uid=zimbra,cn=admins,cn=zimbra' "(objectClass=zimbraDomain)" -w `zmlocalconfig -m nokey -s zimbra_ldap_password`
Re: Listing domains and users
Thanks koichi.kato
It has worked.
It has worked.