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
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:
Run Get-GSContactList targeting a user with a contact entry that has multiple email addresses.
Examine the returned contact entry.
Expected behavior
The EmailAddresses property returned as a string[] or custom object.
Screenshots
Environment (please complete the following information):
OS: Windows 10 1909
PowerShell Version: Windows PowerShell 5.1
PSGSuite Version: 2.36.4
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.
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:
Expected behavior The EmailAddresses property returned as a string[] or custom object.
Screenshots![image](https://user-images.githubusercontent.com/12103419/102102196-873cec80-3df9-11eb-8622-7ab746407d21.png)
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.