3

I have a super user that has Calendar read/write access to all users.

The super user creates an appointment in another user's Calendar:

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());

Now I want to accept this appointment on behalf of userA and userB

Sumama Waheed
  • 3,579
  • 3
  • 18
  • 32

0 Answers0