How to Fix Run Report Permission Error in Google Analytics Using End User's Auth via Connect?

This topic was automatically generated from Slack. You can find the original thread here.

I’m getting run report permission error when using google analytics with “Use end user’s auth via Connect”
Does anyone know of a fix or an alternative?

Is the connected account here using Pipedream’s OAuth client or your own? Looks like a scopes mismatch issue

Account connected with Pipedream OAuth

cc can you reproduce insufficient scopes with this action using Pipedream OAuth? Run Report - Pipedream cc @U052C338AQK

Sure . I’ll check now

Hi , I can reproduce the issue, I’ve added the ticket here: https://github.com/PipedreamHQ/pipedream/issues/15058

Thanks, hope the bug is fixed soon because I have a task related to this application.

Oh wait Leo it works without Connect but you get that scopes issue when using Connect?

Yes , I got that issue when using Connect

Oh that’s strange and doesn’t make any sense

Not using a custom OAuth client in either case? Using Pipedream OAuth for both connections?

Yeah I’m not using custom OAuth client in either case, I connected using Pipedream OAuth for both

Whaat that’s unexpected and bizarre… ok thank you! I’ll check it out

And you connected the same actual Google Analytics account in both cases?

Yes I connected to the same actual Google Analytics account in both cases

Oh wait…

I just reconnect a new Pipedream OAuth account and test, now it has the same error.

=> Then I think this is related to Pipedream OAuth with Google Analytics flow

On the reproduction steps, I used the old account that I connected a while ago

Ah! Okay cool that makes more sense. We must have adjusted the scopes at some point.