Open MartinPrejean opened 8 months ago
I also encountered this problem.
The endpoint used by search reports is https://developers.google.com/webmaster-tools/v1/searchanalytics/query which requires webmaster role.
Not sure if is related but in my case the google service account user does Not have delegating domain-wide authority to the service account, because there is no Workplace admin account (according to this connector we have to folow the steps https://developers.google.com/identity/protocols/oauth2/service-account#delegatingauthority )
In Search Console upgrading from restricted user to full user https://support.google.com/webmasters/answer/7687615?hl=en has no effect, error persists.
IMO if there is no other way to give the webmaster scope to this user it should state in the connector documentation that requires Webmaster account (that is a Google paid service), and does Not work with google analytics free normal accounts. The current documentation states "Note on delegating domain-wide authority to the service account", a note is just a note not a mandatory step, so maybe this phrase needs to be more concise.
affected schemas are search_analytics_keyword_page_report search_analytics_keyword_site_report_by_page search_analytics_keyword_site_report_by_site sitemaps
Connector Name
source-google-search-console
Connector Version
1.3.6
What step the error happened?
During the sync
Relevant information
I am using the connector using the service account key + i have siteRestrictedUser permission level on that service account
While querying the 4 different streams of the connector, I have an unauthorized error for the stream "search_analytics_keyword_site_report_by_site"
I don't know why it happens because I query the rest of the data just fine. Is there a difference between this stream and the others ?
Here are the 4 streams queried
Thank you for your response !
Relevant log output
Contribute