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
Added: Support for inline image downloading with Get-GSGmailMessage where the image is not included on the Attachments property of the parsed message object.
Fixed: Get-GSGmailMessage will now automatically set the Format to Raw if either ParseMessage or SaveAttachmentsTo is passed, as ParseMessage is a requirement in order to be able to access the message attachments as needed.
Added: Recurse parameter to Get-GSDriveFileList to allow recursively listing all files and subfolders underneath the result set. Confirmed setting the Limit parameter also works as expected with Recurse included, stopping is the original limit is reached.
Added: Get-GSDriveFolderSize function to return the calculated total size of the files in the specified folder(s).
Miscellaneous
Added: Rfc822MsgId parameter to Get-GSGmailMessageList to easily build a query looking for a specific RFS 822 Message ID.
Added: Pipeline support for *-GSDrivePermission functions to enable piping Drive Files into them to manage permissions without looping manually.
2.30.0
Get-GSDriveRevision
Remove-GSDriveRevision
Update-GSDriveRevision
Update-GSUser
was not accepting User ID's as the User parameterGet-GSGmailMessage
where the image is not included on the Attachments property of the parsed message object.Get-GSGmailMessage
will now automatically set theFormat
toRaw
if eitherParseMessage
orSaveAttachmentsTo
is passed, asParseMessage
is a requirement in order to be able to access the message attachments as needed.Recurse
parameter toGet-GSDriveFileList
to allow recursively listing all files and subfolders underneath the result set. Confirmed setting theLimit
parameter also works as expected withRecurse
included, stopping is the original limit is reached.Get-GSDriveFolderSize
function to return the calculated total size of the files in the specified folder(s).Rfc822MsgId
parameter toGet-GSGmailMessageList
to easily build a query looking for a specific RFS 822 Message ID.*-GSDrivePermission
functions to enable piping Drive Files into them to manage permissions without looping manually.