title: How to get members of multiple Azure AD groups recursively in a fast way via Azure AD API?
body: <p>I get groups via </p>
  
  <pre><code>https://graph.windows.net/myorganization/groups?api-version=1.6
  </code></pre>
  
  <p>Then get all members in some groups that I'm interested in via </p>
  
  <pre><code>https://graph.windows.net/myorganization/groups/{group_obj_id}/members?api-version=1.6 
  </code></pre>
  
  <p>If there are some groups in some group, I recursively get members in that group.</p>
  
  <p>But if I want to extract members of 5 groups and suppose there is 1 group in each group, then 10 different groups in total. One API call sometimes cost about 1s. Then I need to call 10 times, then I need to wait 10 sec! </p>
  
  <p>Does anyone have a faster way to get members in multiple groups (with/without group -in-group)? </p>