PSGSuite

2.16.1

## Summary

Powershell module wrapping Googles .NET SDKs in handy functions. Authentication is supported both with service account P12 keys as well as client_secrets.json to go through OAuth2.


## Prerequisites

In order to use this module, youll need to have the following:

* Powershell 4.0 or higher
* API Access Enabled in the Admin Console under Security
## Summary

Powershell module wrapping Googles .NET SDKs in handy functions. Authentication is supported both with service account P12 keys as well as client_secrets.json to go through OAuth2.


## Prerequisites

In order to use this module, youll need to have the following:

* Powershell 4.0 or higher
* API Access Enabled in the Admin Console under Security
* Service Account key created and downloaded as a P12 key file
* API Client access allowed for the Service Account that will be used towards the API scopes that you intend to utilize
* Domain-Wide Delegation enabled for the service account


## Breaking Changes in 2.0.0

### Functions Removed

Please note that not all functions were ported to PSGSuite 2.0.0 due to restrictions within the .NET SDK and deprecated API calls. Here is the list of functions no longer existing in PSGSuite as of 2.0.0:
* Get-GSToken: no need for this as the keys are being consumed by Googles Auth SDK directly now, which makes Access/Refresh tokens non-existent for P12 Key service accounts and token management is handled automatically
* Revoke-GSToken: same here, no longer needed due to auth service changes
* Start-PSGSuiteConfigWizard: no longer supported as WPF is not compatible outside of Windows

All other functions are either intact or have an alias included to support backwards compatibility in scripts.

## Tips & Tricks

* All functions support pre-acquired Access Tokens (using the AccessToken parameter).
* This is useful if you have a lot of recurring commands that leverage the same admin and scope(s) so you do not overrun the user API call quota, i.e. pulling info for a large set of emails in a user's inbox.
* If the access token is not pre-acquired, then the P12KeyPath, AppEmail, AdminEmail, CustomerID, and Domain parameters will default to reading from the PSGSuite config file (these can also be named in each function call, if preferred).
* If you plan on using this module on multiple computers or between multiple accounts on the same computer, you will need a new PSGoogle config created for each computer / user account pair.
Show more

Minimum PowerShell version

4.0

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name PSGSuite -RequiredVersion 2.16.1

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name PSGSuite -Version 2.16.1

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) SCRT HQ 2016-2018. All rights reserved.

Package Details

Author(s)

  • Nate Ferrell

Tags

Google GSuite Apps G Suite REST API Admin Directory User Goo.gl

Functions

Add-GSCalendarSubscription Add-GSChatButton Add-GSChatCard Add-GSChatCardAction Add-GSChatCardSection Add-GSChatImage Add-GSChatKeyValue Add-GSChatOnClick Add-GSChatTextParagraph Add-GSCourseParticipant Add-GSDocContent Add-GSDrivePermission Add-GSEventAttendee Add-GSGmailDelegate Add-GSGmailFilter Add-GSGmailForwardingAddress Add-GSGroupMember Add-GSPrincipalGroupMembership Add-GSUserAddress Add-GSUserExternalId Add-GSUserOrganization Add-GSUserPhone Add-GSUserSchemaField Block-CoreCLREncryptionWarning Clear-GSSheet Clear-GSTasklist Compare-ModuleVersion Confirm-GSCourseInvitation Copy-GSDriveFile Copy-GSSheet Export-GSDriveFile Export-GSSheet Get-GSActivityReport Get-GSAdminRole Get-GSAdminRoleAssignment Get-GSCalendarACL Get-GSCalendarEventList Get-GSCalendarSubscription Get-GSChatConfig Get-GSChatMember Get-GSChatMessage Get-GSChatSpace Get-GSClassroomUserProfile Get-GSCourse Get-GSCourseAlias Get-GSCourseInvitation Get-GSCourseParticipant Get-GSDataTransferApplication Get-GSDocContent Get-GSDriveFile Get-GSDriveFileList Get-GSDriveFileUploadStatus Get-GSDrivePermission Get-GSDriveProfile Get-GSGmailAutoForwardingSettings Get-GSGmailDelegate Get-GSGmailFilter Get-GSGmailForwardingAddress Get-GSGmailImapSettings Get-GSGmailLabel Get-GSGmailMessage Get-GSGmailMessageList Get-GSGmailPopSettings Get-GSGmailProfile Get-GSGmailSMIMEInfo Get-GSGmailVacationSettings Get-GSGroup Get-GSGroupAlias Get-GSGroupMember Get-GSGroupSettings Get-GSMobileDevice Get-GSOrganizationalUnit Get-GSResource Get-GSSheetInfo Get-GSShortUrl Get-GSStudentGuardian Get-GSStudentGuardianInvitation Get-GSTask Get-GSTasklist Get-GSTeamDrive Get-GSToken Get-GSUsageReport Get-GSUser Get-GSUserAlias Get-GSUserASP Get-GSUserLicense Get-GSUserPhoto Get-GSUserSchema Get-GSUserToken Get-GSUserVerificationCodes Get-PSGSuiteConfig Import-GSSheet Move-GSTask New-GoogleService New-GSAdminRole New-GSAdminRoleAssignment New-GSCalendarACL New-GSCalendarEvent New-GSCourse New-GSCourseAlias New-GSCourseInvitation New-GSDriveFile New-GSGmailSMIMEInfo New-GSGroup New-GSGroupAlias New-GSOrganizationalUnit New-GSResource New-GSSheet New-GSShortUrl New-GSStudentGuardianInvitation New-GSTask New-GSTasklist New-GSTeamDrive New-GSUser New-GSUserAlias New-GSUserSchema New-GSUserVerificationCodes Remove-GSAdminRole Remove-GSAdminRoleAssignment Remove-GSCalendarSubscription Remove-GSChatMessage Remove-GSCourse Remove-GSCourseAlias Remove-GSCourseInvitation Remove-GSCourseParticipant Remove-GSDrivePermission Remove-GSGmailDelegate Remove-GSGmailFilter Remove-GSGmailMessage Remove-GSGmailSMIMEInfo Remove-GSGroup Remove-GSGroupAlias Remove-GSGroupMember Remove-GSMobileDevice Remove-GSOrganizationalUnit Remove-GSPrincipalGroupMembership Remove-GSResource Remove-GSStudentGuardian Remove-GSTask Remove-GSTasklist Remove-GSTeamDrive Remove-GSUser Remove-GSUserAlias Remove-GSUserASP Remove-GSUserLicense Remove-GSUserPhoto Remove-GSUserSchema Remove-GSUserToken Restore-GSGmailMessage Restore-GSUser Revoke-GSUserVerificationCodes Send-GmailMessage Send-GSChatMessage Set-GSDocContent Set-GSGroupSettings Set-GSUserLicense Set-GSUserSchema Set-PSGSuiteConfig Show-PSGSuiteConfig Start-GSDataTransfer Start-GSDriveFileUpload Switch-PSGSuiteConfig Unblock-CoreCLREncryptionWarning Update-GSAdminRole Update-GSCalendarEvent Update-GSChatMessage Update-GSCourse Update-GSDriveFile Update-GSGmailAutoForwardingSettings Update-GSGmailImapSettings Update-GSGmailLabel Update-GSGmailMessageLabels Update-GSGmailPopSettings Update-GSGmailVacationSettings Update-GSGroupSettings Update-GSOrganizationalUnit Update-GSResource Update-GSTask Update-GSTasklist Update-GSTeamDrive Update-GSUser Update-GSUserLicense Update-GSUserPhoto Update-GSUserSchema Watch-GSDriveUpload

PSEditions

Core Desktop

Dependencies

FileList

  • psgsuite.nuspec
  • psgsuite.psd1
  • PSGSuite.psm1
  • lib\net45\BouncyCastle.Crypto.dll
  • lib\net45\Google.Apis.Admin.DataTransfer.datatransfer_v1.dll
  • lib\net45\Google.Apis.Admin.Directory.directory_v1.dll
  • lib\net45\Google.Apis.Admin.Reports.reports_v1.dll
  • lib\net45\Google.Apis.Auth.dll
  • lib\net45\Google.Apis.Auth.PlatformServices.dll
  • lib\net45\Google.Apis.Calendar.v3.dll
  • lib\net45\Google.Apis.Classroom.v1.dll
  • lib\net45\Google.Apis.Core.dll
  • lib\net45\Google.Apis.dll
  • lib\net45\Google.Apis.Drive.v3.dll
  • lib\net45\Google.Apis.Gmail.v1.dll
  • lib\net45\Google.Apis.Groupssettings.v1.dll
  • lib\net45\Google.Apis.HangoutsChat.v1.dll
  • lib\net45\Google.Apis.Licensing.v1.dll
  • lib\net45\Google.Apis.Oauth2.v2.dll
  • lib\net45\Google.Apis.PlatformServices.dll
  • lib\net45\Google.Apis.Script.v1.dll
  • lib\net45\Google.Apis.Sheets.v4.dll
  • lib\net45\Google.Apis.Tasks.v1.dll
  • lib\net45\Google.Apis.Urlshortener.v1.dll
  • lib\net45\MimeKit.dll
  • lib\net45\Newtonsoft.Json.dll
  • lib\netstandard1.3\BouncyCastle.Crypto.dll
  • lib\netstandard1.3\Google.Apis.Admin.DataTransfer.datatransfer_v1.dll
  • lib\netstandard1.3\Google.Apis.Admin.Directory.directory_v1.dll
  • lib\netstandard1.3\Google.Apis.Admin.Reports.reports_v1.dll
  • lib\netstandard1.3\Google.Apis.Auth.dll
  • lib\netstandard1.3\Google.Apis.Auth.PlatformServices.dll
  • lib\netstandard1.3\Google.Apis.Calendar.v3.dll
  • lib\netstandard1.3\Google.Apis.Classroom.v1.dll
  • lib\netstandard1.3\Google.Apis.Core.dll
  • lib\netstandard1.3\Google.Apis.dll
  • lib\netstandard1.3\Google.Apis.Drive.v3.dll
  • lib\netstandard1.3\Google.Apis.Gmail.v1.dll
  • lib\netstandard1.3\Google.Apis.Groupssettings.v1.dll
  • lib\netstandard1.3\Google.Apis.HangoutsChat.v1.dll
  • lib\netstandard1.3\Google.Apis.Licensing.v1.dll
  • lib\netstandard1.3\Google.Apis.Oauth2.v2.dll
  • lib\netstandard1.3\Google.Apis.Script.v1.dll
  • lib\netstandard1.3\Google.Apis.Sheets.v4.dll
  • lib\netstandard1.3\Google.Apis.Tasks.v1.dll
  • lib\netstandard1.3\Google.Apis.Urlshortener.v1.dll
  • lib\netstandard1.3\MimeKit.dll
  • lib\netstandard1.3\Newtonsoft.Json.dll

Version History

Version Downloads Last updated
2.36.4 53,628 3/20/2020
2.36.3 50 3/20/2020
2.36.2 249 3/3/2020
2.36.1 42 3/2/2020
2.36.0 74 2/28/2020
2.35.1 582 12/29/2019
2.35.0 36 12/29/2019
2.34.0 583 11/3/2019
2.33.2 399 10/7/2019
2.33.1 31 10/6/2019
2.33.0 124 9/27/2019
2.32.3 173 9/19/2019
2.32.2 98 9/15/2019
2.32.1 39 9/14/2019
2.32.0 65 9/13/2019
2.31.1 170 8/30/2019
2.31.0 491 7/31/2019
2.30.2 159 7/18/2019
2.30.1 49 7/17/2019
2.30.0 38 7/17/2019
2.29.0 233 6/28/2019
2.28.2 287 6/5/2019
2.28.1 60 6/1/2019
2.28.0 41 5/31/2019
2.27.0 165 5/15/2019
2.26.4 151 4/26/2019
2.26.3 31 4/26/2019
2.26.2 56 4/25/2019
2.26.1 170 4/7/2019
2.26.0 99 3/30/2019
2.25.3 84 3/26/2019
2.25.2 37 3/26/2019
2.25.1 30 3/26/2019
2.25.0 64 3/20/2019
2.24.0 1,411 3/6/2019
2.23.2 33 3/5/2019
2.23.1 32 3/5/2019
2.23.0 82 2/27/2019
2.22.4 201 2/4/2019
2.22.3 124 1/15/2019
2.22.2 32 1/15/2019
2.22.1 180 12/29/2018
2.22.0 43 12/27/2018
2.21.3 45 12/26/2018
2.21.2 33 12/24/2018
2.21.1 38 12/21/2018
2.21.0 39 12/19/2018
2.20.2 165 11/25/2018
2.20.1 30 11/25/2018
2.20.0 66 11/20/2018
2.19.0 70 11/14/2018
2.18.1 60 11/8/2018
2.18.0 56 11/6/2018
2.17.2 82 10/25/2018
2.17.1 61 10/23/2018
2.17.0 31 10/23/2018
2.16.1 (current version) 79 10/14/2018
2.16.0 31 10/14/2018
2.15.4 40 10/12/2018
2.15.3 41 10/10/2018
2.15.2 44 10/9/2018
2.15.1 63 10/5/2018
2.15.0 47 10/3/2018
2.14.1 42 10/2/2018
2.14.0 44 9/28/2018
2.13.2 158 8/31/2018
2.13.1 122 8/24/2018
2.13.0 114 8/15/2018
2.12.1 80 7/26/2018
2.12.0 74 7/13/2018
2.11.0 72 7/6/2018
2.10.2 36 7/5/2018
2.10.1 28 7/4/2018
2.10.0 34 7/3/2018
2.9.0 22 7/1/2018
2.8.1 21 6/29/2018
2.8.0 22 6/27/2018
2.7.2 34 6/22/2018
2.7.1 22 6/21/2018
2.7.0 34 6/17/2018
2.6.3 38 6/9/2018
2.6.2 89 5/18/2018
2.6.1 23 5/17/2018
2.6.0 42 5/8/2018
2.5.4 27 5/4/2018
2.5.3 17 5/4/2018
2.5.2 25 5/3/2018
2.5.1 45 5/1/2018
2.5.0 33 4/30/2018
2.4.0 125 4/9/2018
2.3.0 32 4/9/2018
2.2.1 56 3/28/2018
2.2.0 81 3/17/2018
2.1.7 47 3/10/2018
2.1.6 46 3/1/2018
2.1.5 49 2/20/2018
2.1.4 42 2/16/2018
2.1.3 34 2/16/2018
2.1.2 50 2/10/2018
2.1.1 31 2/10/2018
2.1.0 31 2/10/2018
2.0.3 38 2/9/2018
2.0.2 46 2/6/2018
2.0.1 38 2/5/2018
2.0.0 42 2/5/2018
1.2.1 414 3/12/2017
1.2.0 36 3/12/2017
1.1.5 41 2/27/2017
1.1.2 34 2/22/2017
1.1.1 39 2/12/2017
1.1.0 33 2/12/2017
1.0.6 35 2/8/2017
1.0.5 32 2/8/2017
Show less