microsoftgraph / microsoftgraph/msgraph-sdk-java

Missing endpoint eDiscoveryHoldPolicy

Open Beginner friendly
#2,610 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status:waiting-for-triage type:bug
Dominant language
Java
Stars
444
Forks
154
Avg merge
18h 28m
Merged PRs (30d)
4

Description

Describe the bug

I am trying to create a Hold Policy in Purview eDiscovery, but the required methods are not present in the SDK. The documentation for v1.0 says that there is an /legalHolds endpoint under the ediscoveryCases resource and this endpoint can be used with direct HTTP calls, but the SDK does not contain the necessary classes to use it via the Java SDK. The beta SDK, however, does contain these classes.

Expected behavior

A LegalHolds class/method in the Java SDK to be able to use the /security/cases/ediscoveryCases/{ediscoveryCaseId}/legalHolds endpoint as described in the documentation for v1.0

How to reproduce

There is no legalholds subpackage in the current ediscovery package.

In the beta tree it exists, even though it is also a v1.0 endpoint

client.security().cases().ediscoveryCases()
        .byEdiscoveryCaseId(purviewCaseId)
        .legalHolds() // <<--- Error here, method not found
        .byEdiscoveryHoldPolicyId(holdPolicyId)
        .userSources().get();
SDK Version

6.65.0

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output
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

Start by comparing the current v1.0 path under src/main/java/com/microsoft/graph/generated/security/cases/ediscoverycases/item with the beta legalholds package at the corresponding path. Confirm that the v1.0 SDK exposes the legalHolds endpoint and the byEdiscoveryHoldPolicyId().userSources() chain described in the issue.

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
Quiet
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.