Difference between revisions of "How To Check Owner Of DL Through CLI"

(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...")
 
(Step 2)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
=How to check owner of a DL through CLI=  
+
=How to check owner of DL through CLI=  
 
<hr>
 
<hr>
{{KB|{{ZC}}|{{ZCS 8.8}}||||}}  
+
{{KB|{{WIP}}|{{ZCS 8.8}}|{{ZCS 9.0}}|||}}  
{{WIP}} 
+
 
  
  
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 "mail:" | awk '{ print $2 }'
+
  $ 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-04-13}}
+
{{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


   KB 24360        Last updated on 2021-12-30  




0.00
(0 votes)


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
Verified Against: ZCS 8.8, ZCS 9.0 Date Created: 2020-09-29
Article ID: https://wiki.zimbra.com/index.php?title=How_To_Check_Owner_Of_DL_Through_CLI Date Modified: 2021-12-30



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »


Jump to: navigation, search