microsoftgraph / microsoftgraph/msgraph-sdk-java

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

Open
#2,246 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

dependency:metadata type:bug
Dominant language
Java
Stars
444
Forks
154
Avg merge
18h 28m
Merged PRs (30d)
4

Description

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_

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the com.microsoft.graph.models.ServicePrincipal model and inspect how its fields are serialized and deserialized. Compare the Java SDK model with the service principal fields returned by Graph API or Graph Explorer, then verify that createdDateTime is available in fetched service principal objects.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.