Link to home
Start Free TrialLog in
Avatar of skbarnard
skbarnard

asked on

Bulk hide users in Google directory

I work for a school district and we've recently 'gone Google'.  Our students now have email accounts; we have around 32,000 students.  The student's email addresses are showing up in the Google directory (Exchange equivalent = Global Address List), we'd like to hide those email addresses from the directory.
I've attached a file with a couple of screen shots from a Google help file that tells me how to do this for an individual account but I'd really rather not have to go through 32,000 accounts and remove a check mark regarding contact sharing.
I know there are API scripts that I could leverage but I'm not much of a programmer.  I can't change the contact sharing setting in the Admin Console because I need the staff email addresses to show up in the directory.
I'm hoping there's an easy resolve but if using an API is the only way to accomplish this task, then if someone could give me the link to the API I'd need to use, I'll give it a try.
I chose Google Chrome OS as the topic but this is a Google general question.
HideContactsInGoogle.pdf
Avatar of Raheman M. Abdul
Raheman M. Abdul
Flag of United Kingdom of Great Britain and Northern Ireland image

Have you tried to select more than one user and do the same steps to uncheck?

Try this:
Admin Console homepage -> “Google Apps”-> click Contacts -> Sharing Settings -> Disable contact sharing.
ASKER CERTIFIED SOLUTION
Avatar of Chris
Chris

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I believe you can do this with FlashPanel.  It is great with bulk operations.
Avatar of skbarnard
skbarnard

ASKER

cydd420, I think you may be right that GAM would do the trick.  I'm not sure I have it set up correctly on my PC.  When I installed, it created a GAM-64 folder (rather than just GAM - but I am using a 64-bit PC).  It doesn't work to double-click the gam.exe or to right click and run as administrator.
I cd to that directory and type a command and it always throws me to what I call the menu page. (see attached)
I've manually created the .json file that I thought it's supposed to be looking for - it's been placed in the same GAM-64 folder.
The .json file fills in the blanks of what you see in the second cmd prompt window.
How can I uninstall this and start over (or just delete the directory)?  What do I need to do to make GAM work?
GAMIssue.pdf
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Before I close this question, is anyone a GAM guru, or at least fairly knowledgable with GAM?  I've tried using a couple of different commands: 'gam ou Students profile unshared'; this one bombs when it comes to a suspended user.
So I tried: 'gam ou Students update user gal off' - I was told in a different forum this would skip over (or at least not bomb) the user if suspended.
The latter command gave an error the first time that the remote session was closed.
The second time I tried the command, I received this error block and would like to know if anyone can help me decipher what the actual problem is:

Traceback (most recent call last):
  File "gam.py", line 7337, in <module>
  File "gam.py", line 3945, in doUpdateUser
  File "gam.py", line 374, in callGAPI
  File "oauth2client\util.pyo", line 132, in positional_wrapper
  File "apiclient\http.pyo", line 716, in execute
  File "oauth2client\util.pyo", line 132, in positional_wrapper
  File "oauth2client\client.pyo", line 494, in new_request
  File "oauth2client\client.pyo", line 663, in _refresh
  File "oauth2client\client.pyo", line 682, in _do_refresh_request
  File "httplib2\__init__.pyo", line 1570, in request
  File "httplib2\__init__.pyo", line 1317, in _request
  File "httplib2\__init__.pyo", line 1286, in _conn_request
  File "httplib.pyo", line 1046, in getresponse
  File "httplib.pyo", line 409, in begin
  File "httplib.pyo", line 373, in _read_status
httplib.BadStatusLine: ''
cydd420 - thank you, GAM was my solution.  Oh BTW, I used the command 'gam ou Students profile unshared' (minus the quotes); this command can also be used for groups and individuals.