Feedback by UserVoice

I suggest you ...

Get all members of a group including nested group members

Currently in Microsoft Graph, the groups/{id}/members ONLY returns the DIRECT members of the specified group. This is a request for an API that would return all members including nested group members (also known as transitive down closure).

47 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Dan Kershaw [MSFT] shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    5 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...
      • Anonymous commented  ·   ·  Flag as inappropriate

        This is a much needed feature. I have implemented a a batched function for this with parallel calls to graph, but those are all things that can be provided as a call as follows:
        /groups/<id>/members?expandLevel=n

        where
        default expandLevel will only expand 1 level
        n = -1 should expand as far as possible,

      • yukon jack commented  ·   ·  Flag as inappropriate

        this is an org chart - would be nice to be able to get a full org chart and also specify based on some state of the member/individual

      • David commented  ·   ·  Flag as inappropriate

        I suggest that this is implemented as /groups('{group-id}')?$expand=members($levels=max)

      Feedback and Knowledge Base