Skip to content

Comments

Remove deprecated SendGrid Legacy Marketing Campaigns functionality#19

Draft
Copilot wants to merge 5 commits intomasterfrom
copilot/update-sendgrid-auth-checks
Draft

Remove deprecated SendGrid Legacy Marketing Campaigns functionality#19
Copilot wants to merge 5 commits intomasterfrom
copilot/update-sendgrid-auth-checks

Conversation

Copy link

Copilot AI commented Feb 13, 2026

Description of change

SendGrid deprecated the Legacy Marketing Campaigns API (/v3/contactdb/*, /v3/campaigns endpoints) and removed the marketing_campaigns.read scope. Modern accounts lack this scope, causing authorization failures during discovery.

Changes:

  • Removed marketing_campaigns.read from required scopes in streams.py
  • Removed deprecated streams: contacts, lists_all, lists_members, segments_all, segments_members, campaigns
  • Retained supported streams: suppression management (global_suppressions, invalids, bounces, blocks, spam_reports), suppression groups (groups_all, groups_members), and templates (templates_all)
  • Updated README to document removed functionality

Authorization check remains in place, now validates only current scopes: suppression.read, asm.groups.read, templates.read, templates.versions.read.

Manual QA steps

  • Run discovery with a modern SendGrid account
  • Verify authorization check passes without marketing_campaigns.read scope
  • Verify only supported streams appear in catalog

Risks

  • Users relying on deprecated streams (contacts, lists, segments, campaigns) will no longer have access to them
  • Existing state files referencing deprecated streams will need to be updated

Rollback steps

  • revert this branch

AI generated code

https://internal.qlik.dev/general/ways-of-working/code-reviews/#guidelines-for-ai-generated-code

  • this PR has been written with the help of GitHub Copilot or another generative AI tool

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: mittal-tushar <215162087+mittal-tushar@users.noreply.github.com>
Copilot AI changed the title [WIP] Update authorization checks for SendGrid marketing campaigns Remove deprecated marketing_campaigns.read scope from authorization check Feb 13, 2026
Copilot AI requested a review from mittal-tushar February 13, 2026 10:37
Copilot AI and others added 3 commits February 13, 2026 11:07
Co-authored-by: mittal-tushar <215162087+mittal-tushar@users.noreply.github.com>
Co-authored-by: mittal-tushar <215162087+mittal-tushar@users.noreply.github.com>
Copilot AI changed the title Remove deprecated marketing_campaigns.read scope from authorization check Remove deprecated SendGrid Legacy Marketing Campaigns functionality Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants