Can we hide a group from being seen when composing a message?

ddelboccio
Contributor III

I know we can hide individual user accounts using directory sharing,  but does this option exist for groups, and dynamic groups?

2 REPLIES 2

Kim_Nilsson
Admin Moderator

Pretty sure it's the same command as for users.

gam update group "group address" gal off

GAL is global address list.

--
https://wheretofind.me/@NoSubstitute

James_Seymour
New Contributor III

And you will also need to remove the group email address from the users (all users) contacts, otherwise it will still show when composing an email.

gam ou_and_children_ns / clear contacts emailmatchpattern <Email To Hide>

Users 'otherContacts' is more tricky as they all have different IDs (resourceName). So you should be able to run 

gam ou_and_children_ns </Path/To/Top/OU> print contacts query <Email to Hide> todrive. Then put the Google Sheet ID/Tab Name from this gSheet into the command below. 

gam csv gsheet <gSheet Owner Email> <Sheet ID> '<Tab Name>' gam user ~User delete othercontacts ~resourceName

For some reason I have oftne needed to run this process a couple of times as not all the otherContacts are removed.

Cheers James