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 67 forks source link

Get-GSUser command does not retrieve Full Name, First Name, and Last Name #323

Open iamthetran opened 3 years ago

iamthetran commented 3 years ago

I was wondering if this command could be updated to retrieve a users Full Name, First Name, and Last Name. GAM and GAMADV currently pulls this information and allows me to cross reference Active Directory to check if names are correct in GSUITE and update as needed. With PSGSuite, I am only able to update a user's Name with the Update-GSUser. Why can't all the options in the Update-GSUser command be available for the Get-GSUser command?

phatmandrake commented 3 years ago

Full Name, First Name, and Family Name properties are stored in a nested object under the "name" property of the object returned by the Get-GSuser command.

$obj.name