I'm creating a Google App Engine project which is going to automatically trigger a function each 5 minutes to analyze a Google sheet.

**OAuth authorization**

The to-be-analyzed sheet is a G Suite sheet, public to only company members. So I need OAuth2 to authorize the access. How do I do this?

I think I need a Service Account client ID, because as this is going to run automatically in the server, there cannot be a OAuth2 flow, right? Who is going to click the buttons if the function is ran in the server?

I need some directions.

Thanks

<https://developers.google.com/identity/protocols/OAuth2ServiceAccount>