title: The collection type 'Microsoft.Graph.IGraphServiceUsersCollectionPage' on 'Microsoft.Graph.GraphServiceUsersCollectionResponse.Value' is not supported
body: <p>I am trying to get list of Azure AD B2C users based on code sample provided <a href="https://docs.microsoft.com/en-us/azure/active-directory-b2c/manage-user-accounts-graph-api#user-management-microsoft-graph-operations" rel="nofollow noreferrer">Here</a>.</p>
  <pre><code>GraphServiceClient graphClient = new GraphServiceClient( authProvider );
  
  var users = await graphClient.Users
      .Request()
      .GetAsync();
  </code></pre>
  <p>Which is loading users as expected when I try with .Net core console application or .Net core web application. But I need to load users in .net core class library project. (Azure function project to be specific). But same code in .net core class library throws below expection while fetching user.</p>
  <blockquote>
  <p>System.Private.CoreLib: Exception while executing function: MainFunction. System.Text.Json: The collection type 'Microsoft.Graph.IGraphServiceUsersCollectionPage' on 'Microsoft.Graph.GraphServiceUsersCollectionResponse.Value' is not supported.</p>
  </blockquote>
  <p>I could not figure out any document or cause related to this error. Can anybody help me with this?</p>