How to find account group inheritance
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();
Version history
Revision #:
2 of 2
Last update:
May 31, 2023
01:14 PM
Updated by: