I'm trying to create a script to transfer the ownership of a calendar event, created by me, to another user. Actually, I have a script to create a large set of events automatically from a google sheet. The events are created succesfully. Each event has an organiser and I want to transfer the ownership of the calendar events to them, for being capable to add another guests, change the information or details of the event, add files, etc.
Normally, I have to use the "three dots" in each calendar event to transfer the event, look for the desired ownership, and paste the text to invite them to accept the ownership of the created event.
I think this whould be possible with an Google Apps Script, but I cannot find any information about this, except for some pages indicating you must have some editor privileges on the receptor's calendar, or similar. This is not the case.
I'm expecting a way to do this automatically. It would avoid me a lot of time, because now I have to make it by hand.