Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
scrthq opened this issue Jun 12, 2018 · 14 comments
Open
Assignees
Labels

Comments

@scrthq
Copy link
Member

scrthq commented Jun 12, 2018

Migrating request from issue #16

@scrthq
Copy link
Member Author

scrthq commented Jun 18, 2018

@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
Copy link
Member Author

scrthq commented Jun 18, 2018

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

@scrthq
Copy link
Member Author

scrthq commented Oct 22, 2018

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

@dwrusse
Copy link
Contributor

dwrusse commented Oct 22, 2018 via email

@scrthq
Copy link
Member Author

scrthq commented Nov 2, 2018 via email

scrthq added a commit that referenced this issue Nov 6, 2018
…, add Sync-GSUserCache for #87

## 2.18.0

* [Issue #87](#87)
  * Added: `Get-GSCourseParticipant` and `Get-GSClassroomUserProfile` now have the `Fields` parameter
  * Added: `Sync-GSUserCache` to create a hashtable of users for quick lookups throughout scripts
* [Issue #53](#53) via [PR #108](#108) - _Thanks, [@dwrusse](https://github.com/dwrusse)!_
  * Added: `Get-GSContactList`
  * Added: `Remove-GSContact`
* Other additions via [PR #108](#108) - _Thanks, [@dwrusse](https://github.com/dwrusse)!_
  * Added: `Remove-GSCalendarEvent`
  * Added: `New-GSGmailLabel`
  * Added: `Remove-GSGmailLabel`
scrthq pushed a commit that referenced this issue Nov 6, 2018
…, add Sync-GSUserCache for #87

## 2.18.0

* [Issue #87](#87)
  * Added: `Get-GSCourseParticipant` and `Get-GSClassroomUserProfile` now have the `Fields` parameter
  * Added: `Sync-GSUserCache` to create a hashtable of users for quick lookups throughout scripts
* [Issue #53](#53) via [PR #108](#108) - _Thanks, [@dwrusse](https://github.com/dwrusse)!_
  * Added: `Get-GSContactList`
  * Added: `Remove-GSContact`
* Other additions via [PR #108](#108) - _Thanks, [@dwrusse](https://github.com/dwrusse)!_
  * Added: `Remove-GSCalendarEvent`
  * Added: `New-GSGmailLabel`
  * Added: `Remove-GSGmailLabel`
@scrthq
Copy link
Member Author

scrthq commented Nov 6, 2018

@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 pushed a commit that referenced this issue Nov 8, 2018
## 2.18.1

* [Issue #87](#87)
  * Added: Additional scopes during Service creation for `Get-GSCourseParticipant` and `Get-GSClassroomUserProfile` to enable pulling of full user profile information. - _Thanks, [@jdstanberry](https://github.com/jdstanberry)!_
* [Issue #111](#111)
  * Added: `DisableReminder` switch parameter to `New-GSCalendarEvent` and `Update-GSCalendarEvent` to remove Reminder inheritance from the calendar the event is on as well as any Reminder overload definitions.
* [Issue #53](#53)
  * Updated: `Get-GSContactList` and `Remove-GSContact` Token retrieval and overall cleanup
* Various/Other
  * Updated: `Get-GSToken` to align parameters more with `New-GoogleService`
scrthq added a commit that referenced this issue Nov 8, 2018
## 2.18.1

* [Issue #87](#87)
  * Added: Additional scopes during Service creation for `Get-GSCourseParticipant` and `Get-GSClassroomUserProfile` to enable pulling of full user profile information. - _Thanks, [@jdstanberry](https://github.com/jdstanberry)!_
* [Issue #111](#111)
  * Added: `DisableReminder` switch parameter to `New-GSCalendarEvent` and `Update-GSCalendarEvent` to remove Reminder inheritance from the calendar the event is on as well as any Reminder overload definitions.
* [Issue #53](#53)
  * Updated: `Get-GSContactList` and `Remove-GSContact` Token retrieval and overall cleanup
* Various/Other
  * Updated: `Get-GSToken` to align parameters more with `New-GoogleService`
@scrthq
Copy link
Member Author

scrthq commented Nov 8, 2018

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!

@BarnumD
Copy link

BarnumD commented Jul 1, 2019

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?

@scrthq
Copy link
Member Author

scrthq commented Jul 1, 2019

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

@BarnumD
Copy link

BarnumD commented Aug 7, 2019

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!

@scrthq
Copy link
Member Author

scrthq commented Aug 7, 2019

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?

@BarnumD
Copy link

BarnumD commented Aug 7, 2019

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 john_doe@email.com notprimary userdefinedfield employeeID 12345
gam update contacts [ContactID] givenname Jane familyname Smith name Jane Smith email work jane_smith@email.com notprimary
gam delete contacts [ContactID]

@scrthq
Copy link
Member Author

scrthq commented Aug 7, 2019

just what i needed

@BarnumD 😄

@scrthq scrthq added the hacktoberfest Hacktoberfest issues to address label Oct 6, 2019
@samsclub91
Copy link

samsclub91 commented Apr 15, 2020

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.

@comparecloud comparecloud mentioned this issue Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants