# OAuth scope required for IAM getAllowedLocations

**URL:** <https://discuss.google.dev/t/oauth-scope-required-for-iam-getallowedlocations/418653>\
**Category:** Cloud Foundations & Onboarding\
**Tags:** troubleshooting\
**Created:** [November 30, 2026, 4:24pm UTC](https://discuss.google.dev/t/oauth-scope-required-for-iam-getallowedlocations/418653 "2026-11-30T16:24:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![CIMEFORGE\_SYSTEMS](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/cimeforge_systems/32/287222_2.png) [@CIMEFORGE\_SYSTEMS](https://discuss.google.dev/u/CIMEFORGE_SYSTEMS)\
**Post date:** [November 30, 2026, 4:24pm UTC](https://discuss.google.dev/t/oauth-scope-required-for-iam-getallowedlocations/418653/1 "2026-11-30T16:24:12Z")

</div>

Hello Google Cloud Community,

Does the IAM Credentials API method  
projects.serviceAccounts.getAllowedLocations  
accept an OAuth access token with only the  
[https://www.googleapis.com/auth/spreadsheets.readonly](https://www.googleapis.com/auth/spreadsheets.readonly)  
scope, assuming iam.serviceAccounts.get  
is already granted on the service account?

Please clarify the required OAuth scopes  
and the expected error code if the scope  
is insufficient.

We want to preserve least privilege.

Thank you for your assistance.
