我有一个超级用户,对所有用户都有日历读/写权限。
超级用户在另一个用户的日历中创建约会:
Appointment appointment = new Appointment(service);
// create an event in userA's calendar
Folder calendarFolder = Folder.bind(service, new FolderId(WellKnownFolderName.Calendar, new Mailbox("userA@test.com")));
// Add userB as an attendee
appointment.getRequiredAttendees().add("userB@test.com");
appointment.save(calendarFolder.getId());
现在我想代表userA
和userB