01-25-2011 01:18 PM
I am trying to retrieve all sub groups (direct and indirect) for a given Group, however the GetSubGroups method of the GroupManager class only retrieves direct sub groups for a given group.
Is there a way to retrieve all groups and sub groups for a given parent group?
Keen to hear from anyone who has come across this issue and possible solution?
01-27-2011 07:40 AM
There's no straightforward method for retrieving and direct and indirect subgroups for a given group.
You can test a group/subgroup if it has subs and loop through the subgroups of the original group to eventually drill down and get them all, this isn't very elegant though. This would certainly be helpful functionality to have, I'll submit a feature request for it.
01-27-2011 03:05 PM
Thanks for your reply.
I have implemented a solution for now however it will be fantastic if this is something that is available through the SDK.
Thanks for submitting this feature request.