Google Calendar API: When accessing a calendar of users in a domain, AccessRole is always FreeBusyReader

I am trying to read a user calendar with a service account. The userโ€™s calendar is shared with the service account using an AccessRole โ€œreaderโ€. However, when I open the calendar of any user, it always opens as "FreeBusyReader":

First, I add the user to the calendar list (I got the impression that he works better when he is on the list, I donโ€™t know if this is really necessary):

Dim Calendar As CalendarListEntry Calendar = service.CalendarList().Insert(" user@domain.com ").Execute() 

Then I check the access role with:

 Calendar.AccessRole 

And it always returns "FreeBusyReader".

This also matches the results in the query:

 Dim requeust As ListRequest = service.Events.List("<email address>") requeust.MaxResults = 99 requeust.TimeMin = DateTime.Now.ToString(dateFormat) requeust.TimeMax = DateTime.Now.AddDays(fetchtimespan).ToString(dateFormat) requeust.ShowDeleted = True requeust.SingleEvents = True 

returns a list of records, but without a summary, and the list of events also has the same AccessRole.

What I did with the user was to share the calendar with the email address of the service users ( xxx@developer.gserviceaccount.com ), I also checked this through the API.

Any ideas?

+7
google-calendar service-accounts
source share

No one has answered this question yet.

See similar questions:

17
Google Apps Calendar Shows Busy Instead of Sharing, More Details

or similar:

nine
The Google Calendar API gives a 403 error during OAuth, although it seems to provide access
nine
How to access Google Calendar REST API v3 using Java
3
Google Calendar API v3 domain service with a wide distributed service in PHP
2
How to access the domain users calendar using a service account in.net?
one
ServiceAccout has an empty calendar after calendar sharing
one
Permission to read Google Calendar Other calendars
0
My application cannot access g suite users Google calendar
0
can we access the calendar of domain users using a service account that has access to the domain with wide access in php?
0
Google Calendar API - triggering events with a service account stops working
0
Google Apps Super Admin access to domain calendars

All Articles