Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Removing Users from GAL

  1. #1
    Join Date
    Dec 2008
    Posts
    7
    Rep Power
    6

    Default Removing Users from GAL

    Hi all,

    I work as a Network Administrator in a school and am currently having a few issues surrounding our Zimbra install.

    Every person in the school, including all staff and students, is assigned an email address through our Zimbra server. The staff are now being migrated over onto using Zimbra as their web-based email client.

    We are however having the issue where when admin staff are sending out important, confidential information, some are mis-typing and we are worried that at some point these emails are going to be sent to a student - who also appear on the GAL.

    The GAL is, of course, useful for staff wishing to contact other members of staff. However, is there a way of removing the students from the gal so that they do not appear?

    Thanks a lot,

    Ben

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

    Default

    in an account's properties there is a "hide in gal" option. I think you can set this per CoS too. So you could have a student cos and a faculty cos. the student cos would have "hide in gal" applied to it so anyone in that cos would inherit the property.

  3. #3
    Join Date
    Dec 2008
    Posts
    7
    Rep Power
    6

    Default

    Hi,

    Thanks for the reply - I liked the idea of using the CoS to manage it and looked into it, but can't seem to find anything in the cos options in order to hide the account from appearing in the GAL.

    Any ideas where this might be?

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

    Default

    hrm you're right it doesn't seem to be an option under cos, you'd have to set it per account.

  5. #5
    Join Date
    Dec 2008
    Posts
    7
    Rep Power
    6

    Default

    surely there's got to be a quicker/better way of doing this - otherwise i've got 1500 accounts to edit!! please help someone!

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

    Default

    you could script it, but you'd need to have all the students in their own cos or distribution already, or some kind of attribute you could search and have a list of users to feed to a batch command.Do you haev something like that??

  7. #7
    Join Date
    Dec 2008
    Posts
    7
    Rep Power
    6

    Default

    all students are in a cos called 'students' and all staff in a cos called 'staff'. this is done automatically through LDAP so they should all be in the right CoS' - so yes, i have that.

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

    Default

    Ok here goes. If you're not comfortable with command line scripting you shouldn't try this.

    First you need to get the id of your 'students' cos.

    Code:
    /opt/zimbra/bin/zmprov gc students | grep zimbraId
    this should return the ID which will look like this 8c2168da-e087-4ea9-a996-aa72f57bd478

    Next execute this command

    Code:
    zmprov gaa -v | grep -e uid: -e zimbraCOSId | grep -B1 8c2168da-e087-4ea9-a996-aa72f57bd478 | grep uid: | awk '{print $2}' > students.txt
    That may take a while to run since you have a lot of users. It will leave you with a students.txt file which should have all the students in it. verify by visual inspection maybe

    Now finally

    Code:
    for i in `cat students.txt`
    do
    /opt/zimbra/bin/zmprov ma $i zimbraHideInGal TRUE
    done
    that should work

  9. #9
    Join Date
    Dec 2008
    Posts
    7
    Rep Power
    6

    Default

    thanks for that - will give it a go. am i right in thinking that this will just update the 'hide in gal' attribute to all of the individual accounts in the CoS, rather than change the CoS - so that next time i add an account I will have to run the command again?

  10. #10
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

Similar Threads

  1. Removing recurring events from users calendars
    By andybz in forum Administrators
    Replies: 0
    Last Post: 08-27-2008, 05:37 PM
  2. 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
  3. Replies: 0
    Last Post: 11-29-2007, 11:57 AM
  4. New Users - Not showing up in GAL (Active Directory)
    By sternfan in forum Administrators
    Replies: 8
    Last Post: 06-28-2007, 01:09 PM
  5. get a login user's phone number from GAL
    By Yokomie in forum Zimlets
    Replies: 0
    Last Post: 04-16-2007, 12:21 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
  •