Show the list of users
@return void
185761
public function index()
    {
        $this->defaultData();
        $userLangService = $this->getServiceLocator()->get(UserLanguageServiceInterface::class);
        $this->setData('user-data-lang-enabled', $userLangService->isDataLanguageEnabled());
        $this->setView('user/list.tpl');
    }
895164
public function listUser()
    {
        $this->actionListUser();
        $this->setTitleListUser();
        $this->setBreadcrumbListUser();
        $this->setFilterListUser();
        $this->setPagerListUser();

        $this->setData('roles', $this->role->getList());
        $this->setData('users', $this->getListUser());

        $this->outputListUser();
    }
907198
protected function getListUser()
    {
        $conditions = $this->query_filter;
        $conditions['limit'] = $this->data_limit;

        $list = (array) $this->user->getList($conditions);
        $this->prepareListUser($list);
        return $list;
    }
349459
public function actionMembers()
    {
        $searchModel = new UserSearch();
        return $this->render('members', [
            'dataProvider' => $searchModel->search(Yii::$app->request->get()),
            'searchModel'  => $searchModel,
        ]);
    }
1268212
public function index()
    {
        return view('address.list', [
            'addresses' => $addresses = Auth::user()->addresses,
            'defaultId' => $addresses->where('default', true)->pluck('id')->first(),
        ]);
    }
882045
def list_users(self):
    '''
    ''' 
    folders = glob('%s/*' %(self.database))
    folders.sort()
    return [self.print_user(x) for x in folders]
39768
def list_users():
    
    echo_header("List of users")
    for user in current_app.appbuilder.sm.get_all_users():
        click.echo(
            "username:{0} | email:{1} | role:{2}".format(
                user.username, user.email, user.roles
            )
        )
54642
public function index(): void
    {
        if (!userHasPermission('admin:auth:settings:update:.*')) {

            unauthorised();
        }

        // --------------------------------------------------------------------------

        $oSocial                 = Factory::service('SocialSignOn', 'nails/module-auth');
        $providers               = $oSocial->getProviders();
        $this->data['providers'] = $providers;

        // --------------------------------------------------------------------------

        if ($this->input->post()) {

            //  Prepare update
            $settings          = [];
            $settingsEncrypted = [];

            if (userHasPermission('admin:auth:settings:update:registration')) {

                $settings['user_registration_enabled'] = $this->input->post('user_registration_enabled');
            }

            if (userHasPermission('admin:auth:settings:update:password')) {

                //  @todo
            }

            if (userHasPermission('admin:auth:settings:update:social')) {

                /**
                 * Disable social signon, if any providers are proeprly enabled it'll
                 * turn itself on again.
                 */

                $settings['auth_social_signon_enabled'] = false;

                foreach ($providers as $provider) {

                    $settings['auth_social_signon_' . $provider['slug'] . '_enabled'] = (bool) $this->input->post('auth_social_signon_' . $provider['slug'] . '_enabled');

                    if ($settings['auth_social_signon_' . $provider['slug'] . '_enabled']) {

                        //  null out each key
                        if ($provider['fields']) {

                            foreach ($provider['fields'] as $key => $label) {

                                if (is_array($label) && !isset($label['label'])) {

                                    foreach ($label as $key1 => $label1) {

                                        $value = $this->input->post('auth_social_signon_' . $provider['slug'] . '_' . $key . '_' . $key1);

                                        if (!empty($label1['required']) && empty($value)) {
                                            $error = 'Provider "' . $provider['label'] . '" was enabled, but was missing required field "' . $label1['label'] . '".';
                                            break 3;
                                        }

                                        if (empty($label1['encrypted'])) {
                                            $settings['auth_social_signon_' . $provider['slug'] . '_' . $key . '_' . $key1] = $value;
                                        } else {
                                            $settingsEncrypted['auth_social_signon_' . $provider['slug'] . '_' . $key . '_' . $key1] = $value;
                                        }
                                    }

                                } else {

                                    $value = $this->input->post('auth_social_signon_' . $provider['slug'] . '_' . $key);

                                    if (!empty($label['required']) && empty($value)) {
                                        $error = 'Provider "' . $provider['label'] . '" was enabled, but was missing required field "' . $label['label'] . '".';
                                        break 2;
                                    }

                                    if (empty($label['encrypted'])) {
                                        $settings['auth_social_signon_' . $provider['slug'] . '_' . $key] = $value;
                                    } else {
                                        $settingsEncrypted['auth_social_signon_' . $provider['slug'] . '_' . $key] = $value;
                                    }
                                }
                            }
                        }

                        //  Turn on social signon
                        $settings['auth_social_signon_enabled'] = true;

                    } else {

                        //  null out each key
                        if ($provider['fields']) {

                            foreach ($provider['fields'] as $key => $label) {

                                /**
                                 * Secondary conditional detects an actual array fo fields rather than
                                 * just the label/required array. Design could probably be improved...
                                 **/

                                if (is_array($label) && !isset($label['label'])) {

                                    foreach ($label as $key1 => $label1) {
                                        $settings['auth_social_signon_' . $provider['slug'] . '_' . $key . '_' . $key1] = null;
                                    }

                                } else {
                                    $settings['auth_social_signon_' . $provider['slug'] . '_' . $key] = null;
                                }
                            }
                        }
                    }
                }
            }

            //  Save
            if (!empty($settings)) {

                if (empty($error)) {

                    $oDb = Factory::service('Database');
                    $oDb->trans_begin();

                    $bRollback          = false;
                    $oAppSettingService = Factory::service('AppSetting');

                    if (!empty($settings)) {
                        if (!$oAppSettingService->set($settings, 'auth')) {
                            $error     = $oAppSettingService->lastError();
                            $bRollback = true;
                        }
                    }

                    if (!empty($settingsEncrypted)) {
                        if (!$oAppSettingService->set($settingsEncrypted, 'auth', null, true)) {
                            $error     = $oAppSettingService->lastError();
                            $bRollback = true;
                        }
                    }

                    if ($bRollback) {

                        $oDb->trans_rollback();
                        $this->data['error'] = 'There was a problem saving authentication settings.';

                    } else {

                        $oDb->trans_commit();
                        $this->data['success'] = 'Authentication settings were saved.';

                    }

                } else {
                    $this->data['error'] = 'There was a problem saving authentication settings. ' . $error;
                }

            } else {
                $this->data['message'] = 'No settings to save.';
            }
        }

        // --------------------------------------------------------------------------

        //  Existing settings
        $this->data['settings'] = appSetting(null, 'auth', true);

        // --------------------------------------------------------------------------

        //  Load assets
        $oAsset = Factory::service('Asset');
        $oAsset->load('nails.admin.settings.min.js', 'NAILS');

        // --------------------------------------------------------------------------

        //  Set page title
        $this->data['page']->title = 'Settings &rsaquo; Authentication';

        // --------------------------------------------------------------------------

        //  Load view
        Helper::loadView('index');
    }
407795
def list_users(self, user=None):
    '''
    ''' 
    from expfactory.database.models import Participant
    participants = Participant.query.all()
    users = []
    for user in participants:
        users.append(self.print_user(user))
    return users
758947
public function listUserRole()
    {
        $this->actionListUserRole();
        $this->setTitleListUserRole();
        $this->setBreadcrumbListUserRole();
        $this->setFilterListUserRole();
        $this->setPagerListUserRole();

        $this->setData('user_roles', $this->getListUserRole());
        $this->outputListUserRole();
    }
787752
def users(self):
        
        if self._users is None:
            self._users = UserList(self._version, service_sid=self._solution['sid'], )
        return self._users
521460
public function get_selected_users() {
        global $DB;
        $idlist = array();
        if (!empty($this->filters->userids)) {

            $idlist = explode(',', $this->filters->userids);
            list($where, $params) = $DB->get_in_or_equal($idlist);
            return $DB->get_records_select('user', "id $where", $params);

        }
        return $idlist;
    }
1030348
public function index() {

        // If this user has locked records for this table, then unlock 'em
        $this->repository->unlockMyRecords('users');

        if (! $this->repository->isFirstAmongEqualsUserInDatabase())
        {
            Session::flash('status_code', 400 );

            $message = 'The user you specified as the "First Amongst Equals" in the auth config is not in the database (the Users table). Please ensure that you specify such user in the auth config (in my User Management package); and, that this user is set up.';

            Session::flash('message',$message);
        }


        $users = $this->repository->getAll();


        // Does the LaSalleCRM PEOPLES table exist? Index layout needs to know!
        if (Schema::hasTable('peoples'))
        {
            $peoplesTableExists = true;
        } else {
            $peoplesTableExists = false;
        }



        return view('lasallecmsadmin::'.config('lasallecmsadmin.admin_template_name').'/users/index',[
            'repository'         => $this->repository,
            'peoplesTableExists' => $peoplesTableExists,
            'Form'               => Form::class,
            'pagetitle'          => 'Users',
            'users'              => $users,
            'config'             => Config::class,
            'auth'               => Auth::class,
            'HTMLHelper'         => HTMLHelper::class,
        ]);
    }
1302328
public function index()
    {
        $userGroupPermission = $this->UserGroupPermission->newEntity();
        
        $controllers = $this->Acl->getControllers();
        $groups = $users = [];
        
        if( !empty($controllers['user']) ) {
            $Users = TableRegistry::get($controllers['user']);
            $users = $Users->find()->select(['id','email'])->toArray();
        }
        if( !empty($controllers['group']) ) {
            $groups = TableRegistry::get($controllers['group']);
            $groups = $groups->find()->select(['id','name'])->toArray();
        }

        $permission = $this->UserGroupPermission->Permission->find()->select(['id','unique_string'])
            ->order(['unique_string'=>'DESC'])->toArray();
        $this->set(compact('userGroupPermission', 'permission', 'users', 'groups'));
        $this->set('_serialize', ['userGroupPermission']);
    }
968072
public function getUsers() {
	
		$this->db->setQuery('SELECT * FROM `users` WHERE group_id=?');
		$list = $this->db->loadObjectList($this->id);
	
		$users = array();
	
		$userClass = PAIR_USER_CLASS;
	
		// iterate on each page
		foreach ($list as $row) {
			$users[] = new $userClass($row);
		}
	
		return $users;
	
	}
1301725
public function index()
  {
    $user = \App\User::with('profile')->findOrFail(\Auth::user()->id);
    return \View::make('acl::admin.dashboard', [
      'user'              => $user,
      'title'              => 'list',
    ]);
  }
1014827
public function index()
    {
        $query = $this->Users
            ->find('search', $this->Users->filterParams($this->request->getQueryParams()))
            ->contain('Groups');

        $this
            ->set('users', $this->paginate($query))
            ->set('page_title', __d('community', 'Profiles: User list'));
    }