How-To Find AccountGroup Inheritance

  • 7011124
  • 12-Jul-2010
  • 19-Oct-2012

Resolution

  • To get a group's inheritance use this query:

AccountGroup groupA
List vals = new ArrayList();
vals.add(groupA);

Filter filter  = Filter.containsAll("inheritance", vals);
QueryOptions qo = new QueryOptions();
qo.add(filter);
Iterator it = spcontext.search(AccountGroup.class, qo);

  • To get a list of account groups that a group inherits from use the getter on the AccountGroup:

List<AccountGroup> inheritence = groupA.getInheritance();

Feedback service temporarily unavailable. For content questions or problems, please contact Support.