Click here to Skip to main content
15,892,809 members

Comments by Member 15002761 (Top 1 by date)

Member 15002761 25-Nov-20 11:28am View    
We are trying to access the user's calendar for Google workspace users(formally G Suite) using google calendar API via the Google cloud platform (GCP)

We followed the following setup.

1) Set up domain-wide delegation for a client Ref link (https://support.google.com/a/answer/162106?hl=en)

2) We have created a service account with an email id and got the client id as per the article above.

3) We have then assigned Calendar API to created client id with read-only permission with below scopes
a> https://www.googleapis.com/auth/calendar.readonly
b> https://www.googleapis.com/auth/calendar.events.readonly
c> https://www.googleapis.com/auth/calendar.settings.readonly

4) Now at this point we are unable to see other users' calendars except own and get the above error.

5) Also, when I tried accessing the Calendar events listing using the Google Api portal (https://developers.google.com/calendar/v3/reference/events/list?apix_params=%7B%22calendarId%22%3A%22bizzhub%40embibe.com%22%7D), I was able to authorize and see the events.