hello! i’m experimenting with your google calendar plugin for service accounts and am running into an issue when trying to use the “add attendees” action. before getting into what isn’t working, here’s what i’ve used the plugin for successfully so far:
- get information about existing calendars and events in the gsuite for which the service account has domain-wide delegation;
- create a new event on an existing calendar;
- create a new calendar.
when i update the workflow to the “add attendee” action, i get a 403 error with the message “service accounts cannot invite attendees with domain-wide delegation of authority.” this error is coming directly from the google calendar api (so it’s on them, not you, that the error isn’t accurate). i can confirm that my service account has been granted domain-wide delegation of authority, and can also confirm that this error is thrown by google calendar api when trying to add an attendee with a service account even outside of your plugin.
after doing some searching, this seems to be a known limitation of service accounts on google’s side – service accounts can only add attendees when they first impersonate a user on the domain [link to related google issue tracker]. the plugin as it’s currently set up doesn’t ask for an existing user to impersonate, which means the “add attendee” action won’t be able to fire successfully.