Returns all sulu system users.

@return array
170909
public function getSystemUserArray()
    {
        $repo = $this->get('sulu_security.user_repository');
        $users = $repo->findUserBySystem($this->container->getParameter('sulu_security.system'));
        $contacts = [];

        foreach ($users as $user) {
            $contact = $user->getContact();
            $contacts[] = [
                'id' => $contact->getId(),
                'fullName' => $contact->getFullName()
            ];
        }

        return $contacts;
    }
214915
protected function allUsers()
    {
        $directory = Google::make('directory');
        $pageToken = null;
        $users = [];
        do {
            try {
                $r = $directory->users->listUsers([
                    'domain' => config('users.google_apps_domain'),
                    'maxResults' => config('users.google_apps_users_maxResults'),
                    'pageToken' => $pageToken
                ]);
                $pageToken = $r->nextPageToken;
                $users = array_merge($users, $r->users);
            } catch (\Exception $e) {
                return json_decode($e->getMessage());
            }
        } while ($pageToken);
        return $users;
    }
901796
public function getUsersPairsWithGroupNamesForSelects()
    {
        // Check and init cache
        if (!self::$cached_users_pairs_with_groups) {
            $user_collection = new AdminUserRepository;
            $user_collection->addOrderByField('name');
            foreach ($user_collection->getAsArrayOfObjects() as $v) {
                /** @var AdminUser $v */

                $group = new AdminUserGroup($v->getGroupId());
                self::$cached_users_pairs_with_groups[$group->getTitle()][$v->getId()] = $v->getName() . ' ' . $v->getSurname() . ' [' . $v->getLogin() . ']';
            }
        }

        return self::$cached_users_pairs_with_groups;
    }
76737
protected function getUsers()
    {
        $qb = $this->registry->getManager()->createQueryBuilder();

        $qb
            ->select('u')
            ->from($this->userClass, 'u')
            ->where($qb->expr()->like('u.roles', ':roles'))
            ->setParameter('roles', '%"ROLE_SUPER_ADMIN"%');

        return $qb->getQuery()->iterate();
    }
1347500
public static function getUserStatusList()
    {
        return [
            IdentityInterface::STATUS_FORBIDDEN => Yii::t('wocenter/app', 'User disabled status'),
            IdentityInterface::STATUS_ACTIVE => Yii::t('wocenter/app', 'User active status'),
            IdentityInterface::STATUS_LOCKED => Yii::t('wocenter/app', 'User locked status'),
            IdentityInterface::STATUS_DELETED => Yii::t('wocenter/app', 'User deleted status'),
        ];
    }
659680
protected function getContactsByUserSystem()
    {
        $repo = $this->get('sulu_security.user_repository');
        $users = $repo->findUserBySystem($this->getParameter('sulu_security.system'));
        $contacts = [];

        foreach ($users as $user) {
            $contacts[] = $user->getContact();
        }

        return $contacts;
    }
1217729
public function getAll(){
        $rest = $this->getService( self::API_PARENTAL_FILTER);
        $rest->GET();

        return $rest->getResultAsArray( models\ParentalControl\Filter::class);
    }
218906
protected function getUsers(): array
    {
        return $this->repository->sudo(function (Repository $repository) {
            $query = new LocationQuery();
            $query->filter = new ContentTypeIdentifier('user');
            $query->offset = 0;
            $query->limit = 10;
            $query->performCount = true;
            $query->sortClauses[] = new SortClause\ContentName();

            $users = [];
            do {
                $results = $repository->getSearchService()->findContent($query);
                foreach ($results->searchHits as $hit) {
                    $users[] = $repository->sudo(function (Repository $repository) use ($hit) {
                        return $repository->getUserService()->loadUser($hit->valueObject->id);
                    });
                }

                $query->offset += $query->limit;
            } while ($query->offset < $results->totalCount);

            return $users;
        });
    }
636556
public function all($status = 'ACTIVE')
    {
        $ids = [$this->data->primary_id];
        foreach ($this->data->user_identifier as $identifier) {
            if (is_null($status) || $identifier->status == $status) {
                $ids[] = $identifier->value;
            }
        }

        return $ids;
    }
549718
public function userList()
    {
        $body = $this->request(self::URI_AUTH_USER_LIST);
        if ($this->pretty && isset($body['users'])) {
            return $body['users'];
        }

        return $body;
    }
390806
public function getGroups()
	{
		if ( ! $this->userGroups)
		{
			$this->userGroups = $this->groups->find_all();
		}

		return $this->userGroups;
	}
136912
public function getUserWorkstations()
    {
        $workstations = $this->getFirstAttribute($this->schema->userWorkstations());

        return array_filter(explode(',', $workstations));
    }
1266387
public function getAllRoots()
    {
        $roots = [];
        foreach ($this->filesystems->keys() as $ident) {
            $disk = $this->getNamedRoot($ident);
            if ($disk !== null) {
                $roots[$ident] = $disk;
            }
        }

        return $roots;
    }
479641
protected function users()
    {
        $rows   = \Antares\Modules\SampleModule\Model\ModuleRow::query()->groupBy('user_id')->with('user')->get();
        $return = ['' => trans('antares/users::messages.statuses.all')];
        foreach ($rows as $row) {
            $return[$row->user_id] = $row->user->fullname;
        }
        return $return;
    }
703019
public static function getAllSuperUserAccessEmailAddresses()
    {
        $emails = array();

        try {
            $superUsers = APIUsersManager::getInstance()->getUsersHavingSuperUserAccess();
        } catch (\Exception $e) {
            return $emails;
        }

        foreach ($superUsers as $superUser) {
            $emails[$superUser['login']] = $superUser['email'];
        }

        return $emails;
    }
708377
public function getIncludeUserIds()
    {
        // In order to get users with the manager role.
        //getting the  workspace.

        $ResourceNode = $this->dropzone->getResourceNode();
        $workspace = $ResourceNode->getWorkspace();
        // getting the  Manager role
        $role = $this->role_manager->getManagerRole($workspace);

        // to finaly have the users.
        $users = $role->getUsers();
        $ids = [];
        foreach ($users as $user) {
            array_push($ids, $user->getId());
        }

        return $ids;
    }
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;
	
	}