Share via

Issue Regarding MS Graph API when using the SDK 4.35.0 AdditionalData property

Ahmed Marzouk 0 Reputation points
2023-06-02T11:58:27.6666667+00:00

Hello

I posted this initially here: https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/1943

I am writing to bring an issue to your attention that I have encountered in one of our applications using MS Graph 4.35.0.

In this application, I utilize the method "DirectoryObjects.GetByIds", which requires two parameters - objectIds and types ("user") - the latter being a list of the user type.

Typically, the method returns an object with an AdditionalData property. However, from May 17th, the AdditionalData property was unexpectedly returning as null. This unexpected change caused issues in our code, which anticipates the presence of the AdditionalData response.

Interestingly, as of May 30th, the AdditionalData response has been coming through as expected once again, without any alteration to the code on our end.

Upon experimentation, I discovered that if I removed the "users" type, the AdditionalData was returned as expected during the problematic period. It's puzzling because there were no changes made to my code, yet the response contract fluctuated between May 17th and May 30th.

I have attempted to find any relevant information in the MS Graph changelog or in reported bug fixes, but to no avail.

Could you please provide some insight into this inconsistency? I'm particularly interested in knowing whether this is a potential ongoing issue that we may encounter again in the future. Any guidance or advice you could provide would be greatly appreciated.

Thank you for your time and assistance.

Microsoft Security | Microsoft Graph
0 comments No comments

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.