microsoftgraph / microsoftgraph/msgraph-sdk-java

The "creationOptions" field is missing in the Group class

Open
#1,778 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Issue

I noticed that the com.microsoft.graph.models.Group class doesn't have the creationOptions field. However, this field is available in the HTTP response if I make a HTTP request to the v1.0 endpoint instead of using the Graph Sdk.
The endpoint I am using is /transitiveMemberOf
An example response from HTTP request:

{
     "id": "",
     "deletedDateTime": null,
     "classification": null,
     "createdDateTime": "",
     "creationOptions": [
         "ProvisionGroupHomepage"
     ],
    ... (other properties)
}
Expected behavior

The com.microsoft.graph.models.Group class should have a creationOptions field with type List<String>.

Actual behavior

The creationOptions field is not available in the com.microsoft.graph.models.Group class.

Steps to reproduce the behavior

Sdk version: latest sdk

Java code:

Group group = client.me().transitiveMemberOfAsGroup();
List<String> creationOptions = group.creationOptions; // will throw an compile error! The "creationOptions" field does not exist in class Group.

HTTP request:
GET https://graph.microsoft.com/v1.0/me/transitiveMemberOf/microsoft.graph.group
The creationOptions property is available in the HTTP 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 with the com.microsoft.graph.models.Group class and compare its available properties with the transitiveMemberOf group response described in the issue. Add the missing creationOptions property with type List; done means Java callers can access it and the SDK model represents the returned value.

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
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.