msgraph-sdk-java icon indicating copy to clipboard operation
msgraph-sdk-java copied to clipboard

createdDateTime field is missing from com.microsoft.graph.models.ServicePrincipal

Open greg-anetac opened this issue 1 year ago • 1 comments

Describe the bug

There is no createdDateTime in com.microsoft.graph.models.ServicePrincipal. However, when using Graph API via REST or in Graph Explorer, createdDateTime is returned for service principals

Expected behavior

createdDateTime should be a member of com.microsoft.graph.models.ServicePrincipal and should be serialized/deserialized when using the SDK

How to reproduce

Fetch service principals using Java SDK - no createdDateTime is present Fetch service principals using Graph Explorer - there is createdDateTime for every service principal object

SDK Version

all versions

Latest version known to work for scenario above?

6.22.0

Known Workarounds

No response

Debug output

Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_

greg-anetac avatar Dec 03 '24 19:12 greg-anetac

Thanks for reporting this @greg-anetac. I have surfaced this to an upstream team.

As a workaround, you can read the property through getAdditionalData() on the model

Internal: IcM

Ndiritu avatar Dec 17 '24 19:12 Ndiritu