We have been using OAuth 2.0 for authenticating google search console webmasters API.
we are mainly hitting two endpoints /sites
and /searchAnalytics/query
to fetch sites and sitemaps data.
Interestingly, the access_token which got generated using refresh_token is able to retrieve data for sites but not for sitemaps.
For sitemaps it's throwing error:
HTTP-error-code: 403, Error: User does not have sufficient permission for site https://www.example.com See also: https://support.google.com/webmasters/answer/2451999
This behaviour has started since June 4, 2022. Prior to that it's been working perfectly fine.