How To Check Owner Of DL Through CLI: Difference between revisions
Aman Shukla (talk | contribs) (Created page with "=How to check owner of a DL through CLI= <hr> {{KB|{{ZC}}|{{ZCS 8.8}}||||}} {{WIP}} ====Overview==== This article will show the method to find the owner of different DL...") |
Aman Shukla (talk | contribs) (→Step 2) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
=How to check owner of | =How to check owner of DL through CLI= | ||
<hr> | <hr> | ||
{{KB|{{ | {{KB|{{WIP}}|{{ZCS 8.8}}|{{ZCS 9.0}}|||}} | ||
Line 11: | Line 11: | ||
=====Step 1===== | =====Step 1===== | ||
* First step will give the zimbra id of the DL owner user | * First step will give the zimbra id of the DL owner user | ||
$ zmprov gdl dl@domain.com |grep -w "zimbraACE:" | awk '{ print $2 }' | $ zmprov gdl dl@domain.com |grep -w "zimbraACE:" |grep "ownDistList" |awk '{print $2}' | ||
f74f6b75-6c31-49e8-8aa1-08a391eb58b1 | f74f6b75-6c31-49e8-8aa1-08a391eb58b1 | ||
=====Step 2===== | =====Step 2===== | ||
* Now run below command to find the actual name of the owner from id | * Now run below command to find the actual name of the owner from id | ||
$ zmprov -l ga f74f6b75-6c31-49e8-8aa1-08a391eb58b1 |grep -w | $ zmprov -l ga f74f6b75-6c31-49e8-8aa1-08a391eb58b1 |grep -w name |awk '{print $3}' | ||
dlowner@domain.com | dlowner@domain.com | ||
{{SubmittedBy|Aman Shukla}} | {{SubmittedBy|Aman Shukla}} | ||
{{Article Footer|ZCS 8.8|2020- | {{Article Footer|ZCS 8.8, ZCS 9.0|2020-09-29}} |
Latest revision as of 14:26, 30 December 2021
How to check owner of DL through CLI
Overview
This article will show the method to find the owner of different DL through CLI commands
Solution
To find the owner of a DL below steps are needed to follow:
Step 1
- First step will give the zimbra id of the DL owner user
$ zmprov gdl dl@domain.com |grep -w "zimbraACE:" |grep "ownDistList" |awk '{print $2}' f74f6b75-6c31-49e8-8aa1-08a391eb58b1
Step 2
- Now run below command to find the actual name of the owner from id
$ zmprov -l ga f74f6b75-6c31-49e8-8aa1-08a391eb58b1 |grep -w name |awk '{print $3}' dlowner@domain.com
Submitted by: Aman Shukla |