Google Calendar API Service Account Error

3,271 views
Skip to first unread message

Francis Jebarson

unread,
Oct 29, 2020, 11:55:46 AM10/29/20
to gce-discussion

Greetings ,

Here i have mentioned is a error while i getting using google calendar API. Please look at it.

1)Created project in google cloud console, enabled a Google calendar API,Generated OAuth 2.0 Credentials for the project.

2)Here we using Spring MVC, to interact with server.

3)I could able to create events but while sending the emails to the attendees getting this error.

4)Already followed this https://developers.google.com/admin-sdk/directory/v1/guides/delegation   but we still not yet resolved.

Google Calendar API Service Account Error 

 

I am getting this error, while using service account to integrate google calendar API into my application 

  "error": { 

    "errors": [ 

      { 

        "domain": "calendar", 

        "reason": "forbiddenForServiceAccounts", 

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

      } 

    ], 

    "code": 403, 

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

  } 


Please advice ,Thanks in advance :)

Adebisi Ibirogba

unread,
Oct 29, 2020, 2:25:53 PM10/29/20
to gce-discussion

You need to perform domain-wide delegation in order to be able to invite the attendees.

Please follow the steps provided in this link 

Reply all
Reply to author
Forward
0 new messages