Skip to content

Permissions error with multiple accounts #2

Description

@dergachev

Here's a document:
https://docs.google.com/a/evolvingweb.ca/spreadsheets/d/176n_UlxM_jmdp6ILDActVsrW9IaGuzVSx9_pmMsUy6U/edit#gid=0

If I share it with my work email (@evolvingweb.ca) and not my personal (@gmail.com) then the following URL (that the plugin generates) results in a 403:

https://docs.google.com/spreadsheet/tq?gid=0&key=176n_UlxM_jmdp6ILDActVsrW9IaGuzVSx9_pmMsUy6U

This error manifests as a "Loading spreadsheet..." stuck message, and 403s in Chrome inspector.
Visiting the URL manually actually has Google prompt me "Which account do you want to use?" but this doesn't help the embedded scenario.

Interestingly, if my personal account was given access to the doc, then it wouldn't just grant me access to that URL, but would actually redirect to the following:

https://docs.google.com/a/evolvingweb.ca/spreadsheets/d/176n_UlxM_jmdp6ILDActVsrW9IaGuzVSx9_pmMsUy6U/gviz/tq?gid=0

Testing that URL without granting access to the doc shows that it works.
Perhaps as a work-around, the macro could take a domain argument? Then it would generate links accordingly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions