Removing a user from all DLs on a server

Revision as of 13:04, 21 May 2018 by Shanxt (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Removing a user from all DLs on a server

   KB 23319        Last updated on 2018-05-21  

(0 votes)


Removing a user from all DLs on a server


We can do this using a combination of zmsoap and zmprov

  • 'zmsoap' will get a list of all the distribution lists the user is a member of. So for '':
zmsoap -z GetAccountMembershipRequest/ @by=name
  • Use this to make a 'zmprov' script that will run 'zmprov rdlm' for all the DLs:
zmsoap -z GetAccountMembershipRequest/ @by=name | sed -n 's/.*name="\(.[^"]*\)".*/rdlm \1' > /tmp/rdlm.zmprov

The above creates a file '/tmp/rdlm.zmprov', which contains multiple lines in the form of 'rdlm'.

  • This file is then inputted to zmprov, removing the user from all the DLs:
zmprov < /tmp/rdlm.zmprov 

Verified Against: ZCS 8.8, 8.7, 8.6 Date Created: 2018-05-21
Article ID: Date Modified: 2018-05-21

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