GAS-访问其他用户的日历ID [英] GAS - Access Other User's Calendar ID
问题描述
我有一个Google App for Business.
I have a Google App for Business.
是否可以访问其他用户的日历以输入&检索事件?我只知道如何针对自己的日历执行此操作,而其他人则不知道.我具有超级管理员访问权限.
Is it possible to access other user's calendar to input & retrieve event? I only know how to do it for my own calendar, but not others. I have super administrator access.
推荐答案
是的,您可以获取任何日历获取事件.根据您的评论,我认为它不会允许您获取域中的任何日历,因此您似乎需要订阅.我不确定这是否是预期的.
Yes, you can get any calendar by it's ID, and then just get the events. As per your comment I don't believe that it will allow you to get any calendar in the domain, you appear to need to be subscribed. Whether this is expected or not I'm unsure.
输入高级日历服务,该服务使用Calendar API管理您的域日历(我怀疑这可能是管理域日历的正确方法).打开日历服务后,您可以做自己想做的事情就像这样:
Enter the Advanced Calendar Service, which uses the Calendar API to manage your domains calendars (and I suspect is probably the correct way to go about managing your domains calendars). After you turn the calendar service on, you can do what your looking for simply like so:
function calendar(){
var cal = Calendar.Calendars.get('calendar@domain');
Logger.log(cal.summary);
};
这将返回日历的名称".(注意:对于主日历,日历的名称"几乎总是与日历ID相同).
Which will return the 'name' of the calendar. (Note: For primary calendars, the 'name' of the calendar is almost always the same as the calendar ID).
这篇关于GAS-访问其他用户的日历ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!