Microsoft Graph SDK - Calendar of user is always null

Martin Dill 6 Reputation points
2022-08-18T12:54:08.113+00:00

Our application is registered in Azure and has application rights for Users.Read.All (Admin consent - yes) and also Calendars.ReadWrite.

By using the Graph SDK - ConfClientAppBuilder (ClientId, ClientSecret) we can access the users, but almost all objects are null, just DisplayName, Id, UserPrincipalName are filled.

We want to read/write the events of the user calendar via SDK, including extended properties, as we did with EWS.

The application is based on .NET Framework 4.7.2 with the latest libraries (Graph.Core, Graph, MS Identity etc.) - we need to integrate the code into our existing, .NET Framework based, service application.

When testing via API Call 'ressource/V1.0/users/name@mathieu.company .xy/calendar/events' we retrieve the events.

Why are the calendar and many other objects null when using the SDK?

Microsoft Security | Microsoft Graph
0 comments No comments

2 answers

Sort by: Newest
  1. Martin Dill 6 Reputation points
    2022-08-22T09:07:57.957+00:00

    Hello @CarlZhao-MSFT
    The documention and examples on the web are mostly confusing, not very helpful.
    Thanks to your short and clear example, I'm able to retrieve the events.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    1 deleted comment

    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.