microsoft-graph-devx-api
microsoft-graph-devx-api copied to clipboard
Example 4 (OData cast) Java snippet wrong
The sample Java code snippet for example 4 does not correspond with the actual SDK use (SDK version 5.39.0).
Existing sample snippet:
UserCollectionPage user = graphClient.groups("{id}").members().microsoft.graph.user()
I think that the Graph SDK should be used like this to achieve the desired effect.
UserCollectionPage user = graphClient.groups("{id}").membersAsUser()
Please correct me if I am wrong, though. Then I am probably using the wrong version of the SDK library.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: 51a32b12-951e-ff94-a7b8-c014968ce6cf
- Version Independent ID: fea401c3-ce70-d7ce-4bae-c112308a711a
- Content: List group members - Microsoft Graph v1.0
- Content Source: api-reference/v1.0/api/group-list-members.md
- Product: groups
- Technology: microsoft-graph
- GitHub Login: @psaffaie
- Microsoft Alias: MSGraphDocsVteam
This issue has been assigned to you, @psaffaie. You are listed as the author for the document associated with this issue. If this is not correct, please take the following actions.
- Assign this issue to the correct author
- Create a pull request to update the
authorfield in the YAML front-matter of this topic