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

The "creationOptions" field is missing in the Group class

Open gary-zhang-everlaw opened this issue 2 years ago • 1 comments

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.

gary-zhang-everlaw avatar Feb 07 '24 00:02 gary-zhang-everlaw

Note: still missing from the new major version https://github.com/microsoftgraph/msgraph-metadata/issues/204

baywet avatar Feb 08 '24 13:02 baywet