albertxavier
albertxavier

Reputation: 95

How to get members of multiple Azure AD groups recursively in a fast way via Azure AD API?

I get groups via

https://graph.windows.net/myorganization/groups?api-version=1.6

Then get all members in some groups that I'm interested in via

https://graph.windows.net/myorganization/groups/{group_obj_id}/members?api-version=1.6 

If there are some groups in some group, I recursively get members in that group.

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!

Does anyone have a faster way to get members in multiple groups (with/without group -in-group)?

Upvotes: 2

Views: 1844

Answers (1)

Fei Xue
Fei Xue

Reputation: 14649

At present, the Azure AD Graph REST doesn't support to retrieve the members of a group recursively. We have to get group members level by level.

If you want Azure AD Graph to support this feature, you may submit the feedback from here.

Upvotes: 1

Related Questions