For anyone else's sanity in the future here is what we found. Thanks Ross for your time as always.
The goal was to help a user get access to a calendar without knowing the exact name, and having only a calendar URL to go by. We also didn't know who the primary owner is of the calendar.
If you have nothing more than a Calendar name, you will find anything pretty hard, so you would need to index out all the calendars in the organisation
gam all users print calendars minaccessrole owner nosystem
We tried the domain prefix first:
So no luck with the domain prepended version.
Trying the non prepended version: gam calendar
u6xxxxxxxx...@group.calendar.google.com show acls results in a "Show Failed: Does not exist" - this is because super admins can't deal in calendars of this type (we believe it to be a secondary calendar.
So we had to go hunting for an actor that had this power, via reports, that made a change to the calendar ACLS
gam report calendars events
change_calendar_acls filter "calendar_id==
u6xxxxxxxx...@group.calendar.google.com"
One of the columns here would be `actor.email` - these would be the people that have sufficient power to provide access `access_level` to the `grantee_email`. Using this actor email we then had success:
This also meant this user was able to modify ACLs via the API as well
eh voila.