Google's officially supported Node.js client library for accessing Google APIs. Support for authorization and authentication with OAuth 2.0, API Keys and JWT (Service Tokens) is included.
I have a service account with domain-wide delegation enabled for Google Calendar. I'm trying to add a calendar to a user's calendar list within the domain while specifying a specific role for access.
Issue
When I include the accessRole property in the requestBody of the calendar.calendarList.Insert method, I receive an "Invalid Value" response error. Without specifying accessRole, the calendar gets added to the user's list with the default role of "reader."
In this api reference of nodejs client library(), accessRole property is mentioned in requestBody. Moreover, intelligence in vscode also provides an option for accessRole in the requestBody of insert method.
I have a service account with domain-wide delegation enabled for Google Calendar. I'm trying to add a calendar to a user's calendar list within the domain while specifying a specific role for access.
Issue When I include the
accessRole
property in the requestBody of thecalendar.calendarList.Insert
method, I receive an "Invalid Value" response error. Without specifyingaccessRole
, the calendar gets added to the user's list with the default role of "reader." In this api reference of nodejs client library(),accessRole
property is mentioned in requestBody. Moreover, intelligence in vscode also provides an option foraccessRole
in therequestBody
of insert method.Environment details
googleapis
version: 118.0.0Steps to reproduce
expected Response calendar should be added to calendar list of "dev test01" user.
Actual Response