Hi, I'm creating a flow to generate a all employee detail sharepoint list from azure ad when triggered.
My problem is that my company 's group mail is like
all employees group
divA group divB group divAdmin group
emp_divA emp_divB salesgroup admin group
emp_divAdmin
both office365group "list group members" and azure ad"get group members" work
but when i list group members(all employess), it just return groups
Then list group members(divgroups), it return employee mail of divA and divB,but
for divAdmin it just return salesgroup and admin group.
Is there a way to determine whether the mail is a group mail and get group member mail until it is a employee mail?
my current flow is like this.

thanks for you help