Results 1 to 3 of 3

Thread: Find accounts hidden in GAL

  1. #1
    Join Date
    May 2008
    Location
    California!
    Posts
    226
    Rep Power
    7

    Default Find accounts hidden in GAL

    I'm trying to produce a list of accounts that have been hidden in the GAL. Can't find a way in the Admin interface, so I'm on the CLI. I know I can get the information with:

    zmprov gaa -v

    However, I want to only list accounts that are hidden from GAL. I can't simply pipe "grep 'zimbraHideInGal: TRUE'", since that just shows that line. Does anyone have some suggestions to how best to do this?

  2. #2
    Join Date
    Jul 2007
    Location
    Baltimore
    Posts
    1,649
    Rep Power
    11

    Default

    heres a quick and dirty way to do it

    Code:
    #!/bin/bash
    for i in `zmprov gaa`
    do
    echo $i
    zmprov ga $i | grep 'zimbraHideInGal: TRUE'
    done
    that will ech each account, and if it finds that attribute echo it below it so the output might look like

    Code:
    user1@domain.tld
    user2@domain.tld
    user3@domain.tld
    zimbraHideInGal: TRUE
    user4@domain.tld
    useful if you're only hunting for a handful in a small account base. with a little work i'm sure you could use an if case to exclude the ones with false.

  3. #3
    Join Date
    Oct 2007
    Location
    Columbus, OH
    Posts
    70
    Rep Power
    7

    Default

    You can do it with an LDAP search using zmprov which is a little less work.
    zmprov sa zimbraHideInGal="TRUE"
    Additionally, in the admin interface you can enter
    (zimbraHideInGal="TRUE")
    in the search field. When you do a search within ()'s it treats it as an LDAP search

Similar Threads

  1. Querying zimbra LDAP hidden accounts
    By inigoml in forum Administrators
    Replies: 1
    Last Post: 04-13-2009, 07:12 AM
  2. GAL search in Find Attendees
    By Vladimir in forum Administrators
    Replies: 0
    Last Post: 02-05-2009, 02:31 PM
  3. How to see individual GAL accounts
    By peter76 in forum Users
    Replies: 1
    Last Post: 06-19-2008, 10:55 PM
  4. Opening another users mailbox if user is hidden from GAL
    By theklone in forum Zimbra Connector for Outlook
    Replies: 2
    Last Post: 06-01-2008, 10:37 PM
  5. Replies: 3
    Last Post: 10-15-2006, 08:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •