Click here to Skip to main content
14,735,271 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
We are trying to integrate our Gsuite calendar with calendar booking software using a tab placed outside the meeting rooms.

Created an email as bizzhub@abc.com
Bizzhub Google Project created with the service account and client id, same has been authorized in Admin console. as per this article https://support.google.com/a/answer/162106?hl=en
bizzhub@abc.com is not able to see other users' calendars except its own.
I tried accessing the events I created on the calendar using the google apis. But, I keep getting the below error.

com.google.api.client.googleapis.json.GoogleJsonResponseException: 404 Not Found

{

  "code" : 404,

  "errors" : [ {

    "domain" : "global",

    "message" : "Not Found",

    "reason" : "notFound"

  } ],

  "message" : "Not Found"

}

	at com.google.api.client.googleapis.json.GoogleJsonResponseException.from(GoogleJsonResponseException.java:146)

	at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:113)

	at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:40)

	at com.google.api.client.googleapis.services.AbstractGoogleClientRequest$1.interceptResponse(AbstractGoogleClientRequest.java:321)

	at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1049)

	at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:419)

	at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:352)

	at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:469)

	at GoogleCalendarUtil2.getEventsList(GoogleCalendarUtil2.java:49)

	at GoogleCalendarMain.call(GoogleCalendarMain.java:13)

	at GoogleCalendarMain.main(GoogleCalendarMain.java:7)


What I have tried:

Control G Suite API access with domain-wide delegation - Google Workspace Admin Help[^]
Posted
Updated 25-Nov-20 10:47am
Comments
Gerry Schmitz 25-Nov-20 10:36am
   
Not found. How are "we" supposed to know what "you" should find? Particularly when your no-code makes no specific address references.
Member 15002761 25-Nov-20 11:28am
   
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.

1 solution

Instead of just talk, here is some code.

https://www.daimto.com/google-calendar-api-authentication-with-c/[^]

(It's actually C#).
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900