SendGridTools
0.6.0-preview0001
Manage SendGrid using its API with PowerShell functions and wrappers.
Minimum PowerShell version
5.1
See the version list below for details.
Installation Options
Owners
Copyright
(c) Philip Haglund. All rights reserved.
Package Details
Author(s)
- Philip Haglund
Tags
Functions
Add-SGEmailAddressToSuppressionGroup Add-SGGlobalSuppression Confirm-SGAuthenticatedDomain Confirm-SGBrandedDomainLink Connect-SendGrid Disable-SGSubuser Disconnect-SendGrid Enable-SGSubuser Get-SGAddressWhitelistSetting Get-SGAlert Get-SGApiKey Get-SGAuthenticatedDomain Get-SGBlock Get-SGBounce Get-SGBounceByClassification Get-SGBouncePurgeSetting Get-SGBrandedDomainLink Get-SGDesign Get-SGEmailActivity Get-SGEnforcedTls Get-SGForwardBounceSetting Get-SGForwardSpamSetting Get-SGGlobalSuppression Get-SGInvalidEmail Get-SGIPAddress Get-SGMailSetting Get-SGPermissionScopes Get-SGSpamReport Get-SGSubuser Get-SGSuppression Get-SGSuppressionGroup Get-SGTeammate Invoke-SGCommand New-SGAlert New-SGApiKey New-SGAuthenticatedDomain New-SGBrandedDomainLink New-SGCombinedDomain New-SGSubuser New-SGSuppressionGroup Remove-SGAlert Remove-SGApiKey Remove-SGAuthenticatedDomain Remove-SGBlock Remove-SGBounce Remove-SGBrandedDomainLink Remove-SGGlobalSuppression Remove-SGInvalidEmail Remove-SGSpamReport Remove-SGSubuser Remove-SGSuppressionGroup Send-SGMailMessage Set-SGAddressWhitelistSetting Set-SGAlert Set-SGApiKey Set-SGAuthenticatedDomain Set-SGAuthenticatedDomainToSubUser Set-SGBouncePurgeSetting Set-SGBrandedDomainLink Set-SGEnforcedTls Set-SGForwardBounceSetting Set-SGForwardSpamSetting Set-SGSuppressionGroup
PSEditions
Dependencies
This module has no dependencies.
Release Notes
## [0.6.0-preview0001] - 2026-11-20
### Added
- `New-SGAuthenticatedDomain`, `New-SGBrandedDomainLink` and `New-SGApiKey` have a `-Force` switch. With `-Force` the question before `-Default` replaces the current default, or before a key with full access is created, is not asked, so a script without a console can do it. `-Force` does not change `-WhatIf` or `-Confirm`. Without `-Force` the commands ask as before.
### Fixed
- `Get-SGBlock`, `Get-SGBounce`, `Get-SGGlobalSuppression`, `Get-SGInvalidEmail` and `Get-SGSpamReport` with `-EmailAddress` now encode the address in the query, so an address with `+`, `#` or `&` asks for that address. Before, the address was sent as given: SendGrid read `+` as a space, and `#` or `&` cut or split the query. Without `-EmailAddress` the query is unchanged.
- `Disable-SGSubuser`, `Enable-SGSubuser`, `Remove-SGSubuser` and `Get-SGTeammate -Username` encode the username in the request path; a name without special characters gives the same path as before. `Get-SGTeammate -Username` now sends its request; before, it called the module's request function without its parameters, so in a console PowerShell asked for those parameters, and otherwise the command failed; no request for the username was sent. `Remove-SGSubuser` names the username in its question and in `-WhatIf`; before, the target was the word `Subuser`. The help for `-Username` in the three subuser commands says the username of the Subuser with the right verb; before, it said the ID (and "to enable" in `Disable-SGSubuser`).
- `Remove-SGBlock`, `Remove-SGBounce`, `Remove-SGInvalidEmail` and `Remove-SGSpamReport` stop with "InputObject has no Email property; pass an email address or an object with an Email property." for an object in the pipeline without a non-empty `Email`, and send nothing for it. Before, an object without `Email` sent a removal to the list's path without an address, and an object with an empty `Email` failed with a conversion error. Any other input that is not a text or such an object now gives "Failed to convert InputObject to an email address." instead of "Failed to convert InputObject to Id.". A text and an object with `Email` work as before.
- `Get-SGDesign` sends `-PageSize` as a plain number, encodes `-PageToken`, and sends `summary=true` for `-Summary` and `summary=false` for `-Summary:$false`. Before, `-PageSize` was sent with an extra `)`, which SendGrid refused, the token was sent as given, `-Summary` was sent as `True`, and `-Summary:$false` sent nothing, so all fields were never asked for. Without `-Summary` no value is sent, as before.
- `New-SGApiKey -FullAccessKey` honours `-WhatIf` and `-Confirm`: with `-WhatIf` it writes one line for the key, asks nothing and creates nothing; with `-Confirm` it asks for the key and then the question about full access. Before, the question about full access was asked also under `-WhatIf`, and `-Confirm` gave no question of its own. Without these switches it asks once, as before.
FileList
- SendGridTools.nuspec
- SendGridTools.psm1
- SendGridTools.format.ps1xml
- SendGridTools.psd1
- en-US\about_SendgridTools.help.txt
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 0.7.2-previe... | 6 | 11/21/2026 |
| 0.7.1 | 9 | 11/21/2026 |
| 0.7.1-previe... | 5 | 11/21/2026 |
| 0.7.1-previe... | 5 | 11/21/2026 |
| 0.7.1-previe... | 5 | 11/21/2026 |
| 0.7.1-previe... | 5 | 11/21/2026 |
| 0.7.0 | 9 | 11/21/2026 |
| 0.7.0-previe... | 5 | 11/20/2026 |
| 0.7.0-previe... | 4 | 11/20/2026 |
| 0.7.0-previe... | 5 | 11/20/2026 |
| 0.7.0-previe... | 5 | 11/20/2026 |
| 0.6.1-previe... | 5 | 11/20/2026 |
| 0.6.0 | 12 | 11/20/2026 |
| 0.6.0-previe... | 10 | 11/20/2026 |
| 0.6.0-previe... | 6 | 11/20/2026 |
| 0.6.0-previe... | 6 | 11/20/2026 |
| 0.6.0-previe... | 5 | 11/20/2026 |
| 0.6.0-previe... | 5 | 11/20/2026 |
| 0.6.0-previe... | 5 | 11/20/2026 |
| 0.6.0-previe... | 5 | 11/20/2026 |
| 0.6.0-previe... (current version) | 6 | 11/20/2026 |
| 0.5.3-previe... | 5 | 11/19/2026 |
| 0.5.3-previe... | 4 | 11/19/2026 |
| 0.5.2 | 12 | 11/19/2026 |
| 0.5.2-previe... | 5 | 11/19/2026 |
| 0.5.2-previe... | 5 | 11/19/2026 |
| 0.5.2-previe... | 5 | 11/19/2026 |
| 0.5.2-previe... | 5 | 11/19/2026 |
| 0.5.2-previe... | 6 | 11/19/2026 |
| 0.5.2-previe... | 5 | 11/19/2026 |
| 0.5.1 | 10 | 11/19/2026 |
| 0.5.1-previe... | 6 | 11/18/2026 |
| 0.5.1-previe... | 5 | 11/18/2026 |
| 0.5.1-previe... | 4 | 11/18/2026 |
| 0.5.1-previe... | 6 | 11/18/2026 |
| 0.5.1-previe... | 5 | 11/18/2026 |
| 0.5.0 | 7 | 11/18/2026 |
| 0.5.0-previe... | 5 | 11/18/2026 |
| 0.5.0-previe... | 5 | 11/18/2026 |
| 0.5.0-previe... | 6 | 11/18/2026 |
| 0.4.9-previe... | 6 | 11/18/2026 |
| 0.4.9-previe... | 8 | 11/18/2026 |
| 0.4.8 | 8 | 11/18/2026 |
| 0.4.8-previe... | 4 | 11/18/2026 |
| 0.4.8-previe... | 5 | 11/17/2026 |
| 0.4.8-previe... | 4 | 11/17/2026 |
| 0.4.8-previe... | 6 | 11/17/2026 |
| 0.4.8-previe... | 4 | 11/17/2026 |
| 0.4.7 | 513 | 11/8/2025 |
| 0.4.6 | 1,144 | 8/15/2024 |
| 0.4.5 | 8 | 8/15/2024 |
| 0.4.4 | 16 | 8/12/2024 |
| 0.4.3 | 9 | 8/12/2024 |
| 0.4.2 | 8 | 8/12/2024 |
| 0.4.1 | 6 | 8/12/2024 |
| 0.4.1-previe... | 5 | 8/12/2024 |
| 0.4.0-previe... | 7 | 2/2/2024 |
| 0.3.0 | 326 | 1/25/2024 |
| 0.2.0-previe... | 8 | 1/25/2024 |