Turn of "contact sharing" for selected users?

214 views
Skip to first unread message

Melissa Benson

unread,
Dec 11, 2014, 10:26:19 AM12/11/14
to google-ap...@googlegroups.com
In my searches it looks like the ability to turn off contact sharing on a per user (or selected users) basis wasn't possible. One post I thought it said it was possible but the URL was broken. All of the posts I saw were old... is it now possible to take a list of users and bulk change those users to be hidden in the address list? (turn off contact sharing)

Jay Lee

unread,
Dec 11, 2014, 10:41:22 AM12/11/14
to google-ap...@googlegroups.com
The basic single user command would be:

gam update user us...@domain.com gal off

Assuming you had a CSV of email addresses with "email" as the CSV header you could run:

gam csv disable-sharing.csv gam update user ~email gal off

or if you wanted to hide all Students from the GAL you could run:

gam print users query "orgUnitPath='/Students'" | gam csv - gam update user ~primaryEmail gal off


Jay Lee

On Thu, Dec 11, 2014 at 10:26 AM, melissa benson <mebe...@gmail.com> wrote:
In my searches it looks like the ability to turn off contact sharing on a per user (or selected users) basis wasn't possible. One post I thought it said it was possible but the URL was broken. All of the posts I saw were old... is it now possible to take a list of users and bulk change those users to be hidden in the address list? (turn off contact sharing)

--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/0ac69a16-4397-4cdf-bcbb-58186e289e1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Melissa Benson

unread,
Dec 11, 2014, 11:04:50 AM12/11/14
to google-ap...@googlegroups.com
Awesome, thanks!

I'm pretty sure I'm running into an issue with the wrong format. I'm on a Mac and a normal csv didn't work..trying to save on a PC now. What type of encoding and csv format should I be using? csv windows? ms-dos?


On Thursday, December 11, 2014 9:41:22 AM UTC-6, Jay Lee wrote:
The basic single user command would be:

gam update user us...@domain.com gal off

Assuming you had a CSV of email addresses with "email" as the CSV header you could run:

gam csv disable-sharing.csv gam update user ~email gal off

or if you wanted to hide all Students from the GAL you could run:

gam print users query "orgUnitPath='/Students'" | gam csv - gam update user ~primaryEmail gal off


Jay Lee

On Thu, Dec 11, 2014 at 10:26 AM, melissa benson <mebe...@gmail.com> wrote:
In my searches it looks like the ability to turn off contact sharing on a per user (or selected users) basis wasn't possible. One post I thought it said it was possible but the URL was broken. All of the posts I saw were old... is it now possible to take a list of users and bulk change those users to be hidden in the address list? (turn off contact sharing)

--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.

Melissa Benson

unread,
Dec 11, 2014, 11:30:35 AM12/11/14
to google-ap...@googlegroups.com
It looks like it's technically working but it only updates the first email address I list in the file. It says it's updating that first user, then the prompt again. Should it be going through all of the users in the terminal? It must be something with my file..but like I said it seems to be working for the first email address listed.

+KimNilsson

unread,
Dec 12, 2014, 4:57:07 PM12/12/14
to google-ap...@googlegroups.com
Yes, most likely it's the csv formatting.
Using Google Spreadsheet and exporting your list of accounts ( a single column of email addresses with the column header "email") then Jay's first command should work.

gam csv disable-sharing.csv gam update user ~email gal off

Problem is making sure the format is correct. Some places says the character code of the resulting csv must be UTF8 without BOM. This isn't something you can control i Spreadsheets, afaik, but must be controlled/changed in a text editor after the export.
On my PC I use Notepad++.

Doesn't it work using the OU path (Jay's second example)?

On Thursday, 11 December 2014 17:30:35 UTC+1, melissa benson wrote:
Reply all
Reply to author
Forward
0 new messages