title: Office 365 room mailboxes CalendarProcessing access via Microsoft Graph
body: <p>When using rooms and equipments, Exchange (in Office 365, but in other versions as well) uses a number of options to handle requests for those resources in events.</p>
  <p>By default, Exchange will for instance strip the subject when creating the event in  the room's calendar, and replace it with the organiser name. If you then try to fetch the room's calendar (for a meeting room display, for instance), you'll only have the organiser name instead of the subject of each meeting.</p>
  <p>This may be appropriate in some scenarios, but in many others one wants the actual subject to be shown in that calendar.</p>
  <p>To achieve that, the only option I know of is to use the Powershell <a href="https://docs.microsoft.com/en-us/powershell/module/exchange/mailboxes/set-calendarprocessing?view=exchange-ps" rel="noreferrer"><code>Set-CalendarProcessing</code></a> cmdlet to change <code>DeleteSubject</code>, <code>AddOrganizerToSubject</code> and more.</p>
  <p>In a SaaS environment this is pretty annoying as you need the Office 365 admin to use Powershell to do this operation, which may not be completely straightforward, or you need to ask for the user's login and password and pass them to Powershell, which raises security issues, and will not work in many scenarios (2FA, SAML auth...).</p>
  <p><strong>Is there a way to access these settings via Microsoft Graph?</strong></p>
  <p>Alternatively, if not available via Microsoft Graph, is there a way to use a Microsoft Graph oAuth token to perform this operation via Linux Powershell? I know it's possible to use oAuth tokens, but despite all my efforts I haven't managed to find a way to perform regular hosted oAuth login and use the token received for this purpose.</p>
  <p>Any hints welcome!</p>
  <h3>Edit</h3>
  <p>To clarify: I'm in a SaaS scenario where I am the SaaS provider, so I need to allow admins of my customers to change those settings easily or automatically, it's not to access my own room mailboxes (I would use powershell for that).</p>