I need to find all sub accounts which a user belongs to. So far the best method I can do this is by...
- Get all Enrollments for a user
- For each enrollment (which contains a CourseID), get Course details
- For each Course (which contains the AccountID), get Sub Account details
Is this the best way to get the sub account details for a specific user?
In addition... I need to figure out which sub accounts an admin may belong to as we have Account Admins added per sub account. Again how would I go about finding this information?
Thanks in advance!