I am developing an application targeting Office 365 which needs to access shared (delegated) calendars that are available for signed in user. I use EWS API according to documentation - explicitly specifying calendar owner's SMTP email address like this:
<m:ParentFolderIds>
<t:DistinguishedFolderId Id="calendar">
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Mailbox>
</t:DistinguishedFolderId>
</m:ParentFolderIds>
This works perfectly for calendars shared by users from the same organization as signed in user, but doesn't work for calendars from other organizations. I always get the same message in response:
<m:MessageText>The SMTP address has no mailbox associated with it.</m:MessageText>
<m:ResponseCode>ErrorNonExistentMailbox</m:ResponseCode>
At the same time I can sees such calendars (and their appointments) in OWA UI - in "Other calendars" section.
Is this a limitation of EWS API/Office 365, or I am missing something?