I have an admin user and create one more that have all rights as admin user with one restriction that this new user can not see the admin user created before itself. So the New user can add/edit users create after him but not the one which is created before it.
protected function _prepareCollection()function.
$createdDate = Mage::getModel('admin/user')->load(Mage::getSingleton('admin/session')->getUser()->getUserId())->getCreated();
$collection = Mage::getResourceModel('admin/user_collection')->addFieldToFilter('created',array('gt' => $createdDate));
- Save the file and check.
Please let me know if you find any problem.