Skip to content

Filter creation fails with insufficientPermissions #68

@ryanh-ai

Description

@ryanh-ai

Filter creation fails with insufficientPermissions

Creating Gmail filters fails with a scope error even when the account is authorized with the gmail service.

Reproduction

# Authorize account
gog auth add user@example.com --services=gmail

# Labels work fine
gog gmail labels create "TestLabel" --account=user@example.com
# Created label: TestLabel (id: Label_2)

# Filter creation fails
gog gmail settings filters create --from="test@example.com" --add-label="TestLabel" --account=user@example.com
# Google API error (403 insufficientPermissions): Request had insufficient authentication scopes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions