I'm setting up a new GAMADV-XTD3 project on a new server to be used by a headless account for some automation. After getting everything setup, it works for a while. But after about an hour, I get the following error when attempting something like a "gam whatis" command:
"ERROR: There are no scopes authorized for the Directory API"
I thought I might need to make the service account an owner of the project in the IAM & Admin section of the Google Cloud Platform console, but that didn't seem to help.
Any thoughts on what could be causing this or where I could find some logging that would show what's happening? I've never had this issue when setting up GAM for my own use with my own account instead of a headless account.