/** * @return $this */ protected function _prepareCollection() { $roleId = $this->getRequest()->getParam('rid'); $this->_coreRegistry->register('RID', $roleId); $collection = $this->_userRolesFactory->create(); $this->setCollection($collection); return parent::_prepareCollection(); }
/** * Retrieve users collection * * @return \Magento\User\Model\Resource\Role\User\Collection */ public function getUsersCollection() { return $this->_userRolesFactory->create(); }