Error: User Does Not Have One of the Scopes marketing_campaigns.read Or marketing.read
Issue
Syncs fail with the following error message:
User does not have one of the scopes marketing_campaigns.read or marketing.read.
Environment
Connector: SendGrid
Resolution
To resolve this issue:
- Log in to your SendGrid account.
- Go to Settings > API Keys.
- Click the settings icon for the API key you created for your connection and select Edit API Key.
- Under Access Details, enable the Marketing and Marketing Campaigns permissions.
- Click Update.
For more information, see our SendGrid setup instructions.
Azure Marketplace accounts
If you integrated SendGrid through the Azure Marketplace, then you won't have access to SendGrid Marketing Campaigns in the MARKETING_CAMPAIGNS table. For more information, see the SendGrid Microsoft Azure documentation.
However, the above error should not appear in this case. If you integrated SendGrid through Azure Marketplace and this error persists, contact our support team.
Cause
This issue occurs when the SendGrid API key you created while setting up your connection doesn't have the Marketing and Marketing Campaigns permissions, which are required.