if (isEveryone()) {
// TODO: improve using authorizable-query
String propName = getJcrName(REP_PRINCIPAL_NAME);
return uMgr.findAuthorizables(propName, null, UserManager.SEARCH_TYPE_AUTHORIZABLE);
} else {
MembershipProvider mMgr = uMgr.getMembershipProvider();
Iterator oakPaths = mMgr.getMembers(getTree(), Type.AUTHORIZABLE, includeInherited);
if (!oakPaths.hasNext()) {
AuthorizableIterator iterator = AuthorizableIterator.create(oakPaths, uMgr, UserManager.SEARCH_TYPE_AUTHORIZABLE);
return new RangeIteratorAdapter(iterator, iterator.getSize());
} else {
return RangeIteratorAdapter.EMPTY;