'What role and conditions are appropriate for allowing a service to add events to my google calendar?

I am new to using / creating IAM accounts. I want to write a service that will add events to my google calendar for me. To do this it is my understanding that I need a service account.

But how do I lock this user down to just being able to create calendar events? I looked through the roles and conditions but I don't see anything specific to calendar.

What role and conditions should I set to limit this service account to just adding events?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source