Toma Catalin
Toma Catalin

Reputation: 21

Calendars created with service account cannot add atendee

I've created 2 calendars using service accounts (tried both with a service account key locally and with the default service account running in Firebase Functions).

When I try to add an event in one calendar and invite the other calendar I get a 403 from the calendar API: 'Service accounts cannot invite attendees without Domain-Wide Delegation of Authority.'

I have calendars created like this aprox. 6 months ago and they can add atendees, what am I doing wrong?

PS: I don't have any "real" user emails involved, I just want to control the calendars created on the service account user. Also, no G Suite domain, it's just a Firebase app.

Thank you in advance!

Upvotes: 0

Views: 92

Answers (1)

Linda Lawton - DaImTo
Linda Lawton - DaImTo

Reputation: 117281

Service accounts cannot invite attendees without Domain-Wide Delegation of Authority.

Means exactly that in order for a service account to invite attendees to an event the service account must have be authorized to the domain using Domain wide delegation.

Yes this means you need to have a gsuite account. It does not work with standard accounts. You will need to use Oauth2 if you dont have a gsuite account.

Upvotes: 1

Related Questions