Results 1 to 6 of 6

Thread: Search by COS? and hide cos from GAL

  1. #1
    krolen is offline Special Member
    Join Date
    Sep 2007
    Location
    Stockport
    Posts
    106
    Rep Power
    7

    Post Search by COS? and hide cos from GAL

    Is there a way to search all the users By cos?
    also is there a way to hide all users in a COS in the GAL?

  2. #2
    mmorse's Avatar
    mmorse is offline Moderator
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    20

    Default

    Welcome to the forums,
    Quote Originally Posted by krolen View Post
    Is there a way to search all the users By cos?
    One method would be-

    su zimbra

    First get the cos id that you want:
    zmprov gac -v | grep -e cn: -e zimbraId
    or zmprov gc COSname

    Then get all accounts with that COS:
    zmprov gaa -v | grep -e uid: -e zimbraCOSId | grep -B1 putzimbraCOSidStringHERE | grep uid: | awk '{print $2}'

    Bug 18779 - Sorting User Accounts by COS.
    the advanced search builder & some v5 viewing stuff will help as well

    Quote Originally Posted by krolen View Post
    also is there a way to hide all users in a COS in the GAL?
    zmprov ma user@domain.com zimbraHideInGal TRUE
    Open an RFE for doing this all at once COS wide & from the admin console GUI
    Last edited by mmorse; 09-19-2007 at 07:59 AM.

  3. #3
    krolen is offline Special Member
    Join Date
    Sep 2007
    Location
    Stockport
    Posts
    106
    Rep Power
    7

    Default

    brill, I will give that a go. if i do what you suggested for hiding the addresses for the cos.. when i put another user into the cos will it hide them?

    many thanks

    Andy

  4. #4
    mmorse's Avatar
    mmorse is offline Moderator
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    20

    Default

    No that's not cos wide-it's per user-essentially like checking the box in each account individually
    you could script the output of an account list backin
    Last edited by mmorse; 09-19-2007 at 08:10 AM.

  5. #5
    krolen is offline Special Member
    Join Date
    Sep 2007
    Location
    Stockport
    Posts
    106
    Rep Power
    7

    Default

    Brill, thank you soo much for all your help, i will give it a go!

    Kind regards

    andy

  6. #6
    mmorse's Avatar
    mmorse is offline Moderator
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    20

    Default

    quick list of accounts zmprov gaa
    btw another useful quick command is 'zmaccts' (su zimbra first)
    (though doesn't help your hunt by COS very much)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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