if(profileauthproxy.getEndEntityProfileAuthorization(admin, user.getEndEntityProfileId(),EndEntityProfileAuthorizationProxy.VIEW_RIGHTS))
if(profileauthproxy.getEndEntityProfileAuthorization(admin, user.getEndEntityProfileId(),EndEntityProfileAuthorizationProxy.VIEW_RIGHTS, LogEntry.MODULE_RA))
    public Collection findAllUsersWithLimit(Admin admin)  throws FinderException, RemoteException{        debug(">findAllUsersWithLimit()");        Collection users = home.findAll();        Collection ret = new ArrayList();        Iterator iter = users.iterator();        while (iter.hasNext() && (ret.size() <= IUserAdminSessionRemote.MAXIMUM_QUERY_ROWCOUNT ))        {            UserDataLocal user = (UserDataLocal) iter.next();            UserAdminData userData =  new UserAdminData(user.getUsername(), user.getSubjectDN(), user.getSubjectAltName() ,user.getSubjectEmail(), user.getStatus()                                        , user.getType(), user.getEndEntityProfileId(), user.getCertificateProfileId()                                        , new java.util.Date(user.getTimeCreated()), new java.util.Date(user.getTimeModified())                                        , user.getTokenType(), user.getHardTokenIssuerId());            userData.setPassword(user.getClearPassword());            if(globalconfiguration.getEnableEndEntityProfileLimitations()){              // Check if administrator is authorized to view user.              if(profileauthproxy.getEndEntityProfileAuthorization(admin, user.getEndEntityProfileId(),EndEntityProfileAuthorizationProxy.VIEW_RIGHTS))                ret.add(userData);            }            else              ret.add(userData);        }        debug("<findAllUsersWithLimit()");        return ret;    }