Skip to content

Instantly share code, notes, and snippets.

@maisarissi
Last active December 7, 2023 19:48
Show Gist options
  • Save maisarissi/a3e181677f2fc5de7ce735040c024b73 to your computer and use it in GitHub Desktop.
Save maisarissi/a3e181677f2fc5de7ce735040c024b73 to your computer and use it in GitHub Desktop.
microsoftgraph-java-v6-count
int memberCount = graphClient
.groups()
.byGroupId("Id")
.members()
.graphUser()
.count() //Where applicable to enable the use of $count
.get(requestConfiguration -> {
requestConfiguration.headers.add("ConsistencyLevel", "Eventual");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment