Google calendar CLI? Need to create Global calendar
Posted by Azh13r-@reddit | sysadmin | View on Reddit | 7 comments
Hey folks, got this request dumped on me: build a global holiday calendar with EVERY country’s holidays loaded up. Thinking I’ll need to make a distribution list (DL) for each country, then tie invites from each country’s holidays to the right DL.
Requester wants users getting these as actual invites to their personal calendars. End goal is managers can check out this master calendar, subscribe to it, and see their team’s holidays overlaid or whatever.
Whats the best approach to avoid setting all these events manually?
Entegy@reddit
This is a stupid idea. Can you not just give them the link on how to add the premade Google Holiday calendar to their account? What you're proposing is super messy and will likely screw up the publishing of free/busy times on those calendars.
How did this even come about? Some red-faced manager screaming about why someone isn't available only to realize it was a holiday in that person's country and now he's trying to save face by making sure everyone is aware of every public holiday on Earth?
Azh13r-@reddit (OP)
Yeah its stupid, I created 17 calendars one for each country and did a notion page with the links to the ID for them to subscribe she didn’t like it, I hate it,
Entegy@reddit
Can you go above her? This isn't sustainable and you will be hiring a Holiday Calendar Engineer soon enough.
Or just refuse and say "this is the link to the calendars Google updates and maintains for us".
Civil_Inspection579@reddit
google already has built-in holiday calendars for most countries you can just subscribe to them instead of generating invites for everything if they really need custom control, use the google calendar api to script event creation from a public holidays dataset but sending them as invites to DLs sounds messy and spammy fast
Azh13r-@reddit (OP)
if not with DLs how do i sent invites for all users in one specific country
automounter@reddit
I'd recommend using Google Apps Script so you're not wrestling with OAuth2.
Azh13r-@reddit (OP)
i should do this with the super account ?