Search code examples
c#asp.net-coremicrosoft-graph-apimicrosoft-graph-sdks

Microsoft Graph SDK with pageIterator


I'm facing a wall here, as the solution proposed by Microsoft doesn't work as expected and is not even building. Here is my issue: I want to return all the users from a specific group with expanded information (for the manager). I'm trying to handle it with PageIterator as stated in the documentation, but I'm facing the below error:

Link to image

On the return true, I receive the error Cannot implicitly convert type "bool" to "System.Threading.Tasks.Task<bool>

But the code looks exactly as described in the documentation: here

Am I missing something?

Thank you all for your help!


Solution

  • Add await before _graphClient.Groups[groupId].Members

    enter image description here