microsoftgraph / microsoftgraph/msgraph-sdk-dotnet

Error when searching a specific user in Groups/Members

Open
#2,093 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area:Groups Bug Bug: metadata OpenApi Triage:Escalated
Dominant language
C#
Stars
789
Forks
264
Avg merge
15h 17m
Merged PRs (30d)
3

Description

This is erroring out in V5.
var members = await _graphServiceClient.Groups[groupId].Members[id].GraphUser.GetAsync()

In V4 I could do this NO PROBLEM:
var members = await _graphServiceClient.Groups[groupId].Members[id].Request().GetAsync()

Right now, i have do something funky to get this to work.

  {
      requestConfiguration.QueryParameters.Count = true;
      requestConfiguration.QueryParameters.Filter = $"id eq '{id}'";
      requestConfiguration.Headers.Add("ConsistencyLevel", "eventual");
  });

Am I doing something wrong? Please advise.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the V5 call to Groups[groupId].Members[id].GraphUser.GetAsync and compare it with the V4 Request().GetAsync call. The issue does not include the resulting error or name a test or source file, so done would require identifying whether the V5 lookup is supported and documenting or correcting the behavior, with coverage if the repository provides a relevant test location.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.