[Feature Request] Contact Management (both per user and in Global Directory)
Migrating request from issue #16
@ryanfog - don't want you to think I forgot about this! Issue opened to track this request directly. Hoping to have at least domain level contact management doable via direct calls to Google's REST API, will need to figure out the user side of it as well though.
Branch created to track development for this: https://github.com/scrthq/PSGSuite/tree/feature/ContactMgmt_issue53
@dwrusse - Here's the Contact management open request if you want to note anything here, since I know you've been working on this a little lately!
Cool! I've got it working but need to clean it up and add comments for PSGSuite... I'll try to get it committed tomorrow.
On Sun, Oct 21, 2018 at 10:07 PM Nate Ferrell [email protected] wrote:
@dwrusse https://github.com/dwrusse - Here's the Contact management open request if you want to note anything here, since I know you've been working on this a little lately!
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/scrthq/PSGSuite/issues/53#issuecomment-431724986, or mute the thread https://github.com/notifications/unsubscribe-auth/Adsra4A-87CdOTLj006yEhI3T4omd-Xlks5unShagaJpZM4Uknbj .
Hey @dwrusse - Worth noting this update from Google, as I wouldn't be surprised if this also means the sunsetting of the old Contacts GData API as well: https://gsuiteupdates.googleblog.com/2018/11/timeline-to-move-users-to-new-google.html
On Mon, Oct 22, 2018 at 11:24 AM dwrusse [email protected] wrote:
Cool! I've got it working but need to clean it up and add comments for PSGSuite... I'll try to get it committed tomorrow.
On Sun, Oct 21, 2018 at 10:07 PM Nate Ferrell [email protected] wrote:
@dwrusse https://github.com/dwrusse - Here's the Contact management open request if you want to note anything here, since I know you've been working on this a little lately!
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/scrthq/PSGSuite/issues/53#issuecomment-431724986, or mute the thread < https://github.com/notifications/unsubscribe-auth/Adsra4A-87CdOTLj006yEhI3T4omd-Xlks5unShagaJpZM4Uknbj
.
— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/scrthq/PSGSuite/issues/53#issuecomment-431886032, or mute the thread https://github.com/notifications/unsubscribe-auth/AMIo3Rv4rumZqgAQt-Czh1xTMQmJooGIks5unfEsgaJpZM4Uknbj .
@dwrusse - your additions have been released alongside a few others in v2.18.0!
@ryanfog - Get-GSContactList and Remove-GSContact now available in PSGSuite v2.18.0!
hey @dwrusse - just an FYI - did some more cleanup on the functions in the most recent release (v2.18.1) around access token retrieval (switched to using Get-GSToken for that instead of using New-GoogleService, since that's purpose-built for retrieving Access Tokens for REST/GData API calls), as well as just cleanup in general. Try it out and let me know if you have any issues/questions!
I would like to manage gSuite Global contacts (directory) by editing a user's includeinaddressbook account parameter as well as managing the global shared contacts list for external accounts that appear in the directory. I assume this is the right Issue to track that request. Is this still being worked on?
hey @BarnumD - The Global Shared Contacts list fits in here, but I believe the IncludeInGlobalAddressList parameter for user creation / updating would be separate (that would need to be added to the New-GSUser / Update-GSUser functions, from what I can tell). This is still being worked on, but the Contacts API has been sunset in favor of the newer People API, so investigation around capability with the new API still needs to happen
I'm using IncludeInGlobalAddressList in New-GSUser/Update-GSUser now. It's working well.
Looking forward to global shared contact support so I can ditch gam. Thanks!
thanks for the follow-up on this, @BarnumD! I'm trying to find the info on the GAM wiki around Contact management, but I'm not seeing it outright. Would you be able to provide a sample GAM command that you use with filler/dummy values for info and the version of GAM you're using, by chance?
Sure. I'm using version 4.89.06 of this customized version of gam. Here's some example commands
gam create contact givenname John familyname Doe name John Doe email work [email protected] notprimary userdefinedfield employeeID 12345
gam update contacts [ContactID] givenname Jane familyname Smith name Jane Smith email work [email protected] notprimary
gam delete contacts [ContactID]

@BarnumD 😄
I was wondering if any more thought had gone into managing individual users contacts? Mainly adding/updating contact information, I see where there are functions to view and delete contacts but not add or update.
Like @BarnumD I can do this with the custom version of GAM but I vastly prefer using PSGSuite wherever possible.