title: Fetch Shared Outlook Calendar Events C#
body: <p>I know how to retrieve events in the current user's outlook calendar, the following code works to remove items matching a certain pattern for instance:</p>
  
  <pre><code>private void RemoveAppointments()
          {
              Outlook.Application outlook = new Outlook.Application();
              Outlook.MAPIFolder calendarFolder = outlook.Session.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderCalendar);
              Outlook.Items outlookCalendarItems = calendarFolder.Items;
              for (int i = outlookCalendarItems.Count; i &gt; 0; i--)
              {
                  if (outlookCalendarItems[i].Subject.Contains("On Call: Regions:") &amp;&amp; outlookCalendarItems[i].Start.Year == _year)
                  {
                      outlookCalendarItems[i].Delete();
                  }
              }
          }
  </code></pre>
  
  <p>However, I now need to be able to read calendar events from all users within an Outlook Team (assume sharing permissions have been set correctly). Ideally I need to be able to iterate per user but if I just get a collection of all events and can then query that by user that would suffice too.</p>
  
  <p>Any ideas where I can start?</p>
  
  <hr>
  
  <p>Note: this is how the team is represented withing the Calendar pane of Outlook. Sensitive details redacted.</p>
  
  <p><a href="https://i.stack.imgur.com/LfipR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LfipR.png" alt="Calendar Section Bar"></a></p>