Private appointment not showing as private in room calendar when performing Microsoft Graph call

Gareth Meech 0 Reputation points
2023-05-30T16:22:15.1166667+00:00

I have an issue I can reproduce as follows:

In Microsoft Outlook, create a new appointment in a users calendar, invite a room and flag the appointment as private.

Immediately perform a call to

[GET] https://graph.microsoft.com/v1.0/users/room@domain.co.uk/calendarView?startDateTime=2023-05-30T18:31&endDateTime=2023-05-31T09:31:00

The sensitiivty flag is returned as "private" as expected.

perform the call a second time a few seconds later (once accepted maybe?) and the flag is changed to "normal" which

I have found that if I change the appointment to importance: low in Outlook and send the update, and immediately perform the same call it returns:

importance: low

sensitivity: private

but again after a few seconds it reverts to sensitivity: normal but importance remains as "low"

I need the sensitivity: private flag to be honoured and returned if the organiser sets the appointment as private.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,397 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Gareth Meech 0 Reputation points
    2023-05-30T16:37:27.53+00:00

    After scratching my head for a few hours before posting this question I have found what was causing this:

    https://learn.microsoft.com/en-us/powershell/module/exchange/set-calendarprocessing?view=exchange-ps

    The default value for the -RemovePrivateProperty is $true

    Can anyone explain why this is the default value, what the implications are of setting this to $false are and has this changed recently as I'm pretty sure this used to work (unless my previous testing was withing a couple of seconds but that was a few months ago now)

    0 comments No comments