'Paging support in graph SDK
Does Microsoft Graph Java SDK provide paging support for groups and users? As Microsoft Grpah API supports paging https://docs.microsoft.com/en-us/graph/paging
But I could not find anyhting for paging by graph SDK.
Solution 1:[1]
Yes, Microsoft graph supports paging use .top() in your code. Below code is for users similarly you can use for groups.
IUserCollectionPage users = graphClient.users()
.buildRequest(requestOptions)
.select("userPrincipalName,mail")
.top(999)
.get();
Solution 2:[2]
The .NET and JavaScript SDKs have iterator classes to make this easy.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | |
Solution 2 | Jason Johnston |