PSGSuite icon indicating copy to clipboard operation
PSGSuite copied to clipboard

[Feature Request] Contact Management (both per user and in Global Directory)

Open scrthq opened this issue 7 years ago • 14 comments

Migrating request from issue #16

scrthq avatar Jun 12 '18 15:06 scrthq

@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.

scrthq avatar Jun 18 '18 03:06 scrthq

Branch created to track development for this: https://github.com/scrthq/PSGSuite/tree/feature/ContactMgmt_issue53

scrthq avatar Jun 18 '18 03:06 scrthq

@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!

scrthq avatar Oct 22 '18 01:10 scrthq

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 .

dwrusse avatar Oct 22 '18 16:10 dwrusse

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 .

scrthq avatar Nov 02 '18 04:11 scrthq

@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!

scrthq avatar Nov 06 '18 07:11 scrthq

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!

scrthq avatar Nov 08 '18 20:11 scrthq

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?

BarnumD avatar Jul 01 '19 20:07 BarnumD

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

scrthq avatar Jul 01 '19 20:07 scrthq

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!

BarnumD avatar Aug 07 '19 14:08 BarnumD

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?

scrthq avatar Aug 07 '19 14:08 scrthq

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 avatar Aug 07 '19 14:08 BarnumD

just what i needed

@BarnumD 😄

scrthq avatar Aug 07 '19 14:08 scrthq

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.

samsclub91 avatar Apr 15 '20 14:04 samsclub91