We have created a Service Account in Google and Using Calendar API for adding events, it worked fine before ,after google stopped the account and reactivated it , it didn\'t
In the past few weeks, my team have the same issues, and this is what my team's workaround.
Our scenario
google-calendar@mycompany.iam.gserviceaccount.comcalendar.events.insert({
calendarId: 'primary', // it will create an event into service account's calendar
resource: data,
sendNotifications: true
})
What we have done for a workaround.
system@mycompany.com)system@mycompany.com's calendar with a service account by
google-calendar@mycompany.iam.gserviceaccount.com with "Make changes to events"calendar.events.insert({
calendarId: 'system@mycompany.com', // << we changed from 'primary' to just-created-user
resource: data,
sendNotifications: true
})
After changing it, the created-event will be shown in Google Calendar as what it should.
Hope this helps