SCRT-HQ / PSGSuite

Powershell module for Google / G Suite API calls wrapped in handy functions. Authentication is established using a service account via P12 key to negate the consent popup and allow for greater handsoff automation capabilities
https://psgsuite.io/
Apache License 2.0
234 stars 68 forks source link

EmailAddresses property of Get-GSContactList broken for contacts with multiple email addresses. #341

Open steveAG opened 3 years ago

steveAG commented 3 years ago

Describe the bug When Get-GSContactList returns a contact entry with multiple associated email addresses the value of the email addresses property is an unusable value of the type "System.Management.Automation.PSMethod".

To Reproduce Steps to reproduce the behavior:

  1. Run Get-GSContactList targeting a user with a contact entry that has multiple email addresses.
  2. Examine the returned contact entry.

Expected behavior The EmailAddresses property returned as a string[] or custom object.

Screenshots image

Environment (please complete the following information):

Additional context While looking at the API method called in GSuite docs, there's also a note that the Contacts API being used for this function is deprecated and will be sunset in 6 months, with the People API listed as its successor.