Hello, community!
I'm currently working on implementing location-based access controls in Google Workspace and facing an issue.
There is only one Access Level for now.
Here's the setup:
Access Level Configuration:
'Allow access to apps or apply rule if a user'
'Doesn't meet 1 or more attributes:'
Conditions
User's location is not: China OR Iran, Iraq, North Korea, Syria
This Access level is assigned to the 'Drive and Docs' application with the following settings checked:
Problem: Everything works fine for users, but I've encountered an issue with Google Apps Scripts. When the access rule is active, running
DriveApp.getFolderById(<id-here>);
returns an error: "Authorization is required to perform that action." As soon as I disable Context-Aware Access, Apps Scripts starts working again.
I'm puzzled because, to my knowledge, there aren't any Google servers in the blocked locations that could affect this.
Questions for the Community:
Thanks in advance for any help or guidance you can provide!
We are experiencing the same issue. We discovered the scripts come from Google IP addresses listed with a country code of ZZ for Unknown.