/** * Function to get the list of all existing roles * * @return roles list */ public function getAllRoles(){ try { return $this->userStoreManager->getRoleNames(); } catch (Exception $ex) { throw new Exception("Unable to get all roles", 0, $ex); } }
/** * Function to get the list of all existing roles * * @return roles list */ public function getAllRoles() { try { $roles = $this->userStoreManager->getRoleNames(); return array_filter($roles, "Wsis::nonInternalRoles"); var_dump($roles); exit; } catch (Exception $ex) { throw new Exception("Unable to get all roles", 0, $ex); } }