Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Commit c9717dd

Browse files
authored
Update GroupSnippets.cs to retrieve all sub properties
`Expand("")` only returns 20 objects. See microsoftgraph/msgraph-sdk-dotnet#184 This needs paging handling.
1 parent b14809a commit c9717dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Microsoft-Graph-Snippets-SDK/Groups/GroupSnippets.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public static async Task<IGroupMembersCollectionWithReferencesPage> GetGroupMemb
7878

7979
try
8080
{
81-
var group = await graphClient.Groups[groupId].Request().Expand("members").GetAsync();
81+
var group = await graphClient.Groups[groupId].Members.Request().GetAsync();
8282
members = group.Members;
8383

8484

@@ -108,7 +108,7 @@ public static async Task<IGroupOwnersCollectionWithReferencesPage> GetGroupOwner
108108
try
109109
{
110110

111-
var group = await graphClient.Groups[groupId].Request().Expand("owners").GetAsync();
111+
var group = await graphClient.Groups[groupId].Owners.Request().GetAsync();
112112
owners = group.Owners;
113113

114114
foreach (var owner in owners)

0 commit comments

Comments
 (0)