Reputation: 21
I want to get deleted events via Google api. I use this code:
$events = self::getCalendarService()->events->listEvents(self::getCalendarService()->calendars->get('primary'), ["showDeleted" => true]);
Everything works fine in my private Google account. But if I try this in our GSuit Google Calendar I can not see deleted events. This is only for primary calendar in GSuit. If I create new calendar in GSuit and delete an event then I get the deleted event.
How do I get this problem:
How can I get deleted events for GSuite primary calendar?
Thank you.
Upvotes: 1
Views: 373
Reputation: 26836
See here:
Important: Anyone who has "Make changes to events" or "Make changes AND manage sharing" permission for the calendar can delete events and see and restore events from that calendar's trash.
In other words, if you can see deleted events in your private / primary calendar, but not in domain calendars that have been shared with you - it means that you do not have the necessary privelleges to access this inforamtion
Upvotes: 0