src/Service/profileService.php
public function getProfile($userId=null)
    {
        // with the userid, query for role, group, position, division, org
        if (!$userId) {
            return null;
        }

        $profile['USERID'] = $userId;
        
        // just make up something for test. must be replace in real application
        if ($userId == "admin") {
            $profile['ROLE'] = 'admin';
        } else if ($userId == "member") {
            $profile['ROLE'] = 'member';
        }

        $profile['ROLEID'] = 'RLE_2';
        $profile['GROUP'] = 'Member';
        $profile['GROUPID'] = 'GRP_3';
        $profile['POSITION'] = 'Marketing - France';
        $profile['POSITIONID'] = 'PSN_10';
        $profile['DIVISION'] = 'Marketing - Europe';
        $profile['DIVISIONID'] = 'DVN_5';
        $profile['ORG'] = 'IBM';
        $profile['ORGID'] = 'ORG_101';

        return $profile;
    }
public function getProfile($userId=null)
    {
        // with the userid, query for role, group, position, division, org
        if (!$userId) {
            return null;
        }

        $profile['USERID'] = $userId;
        
        // just make up something for test. must be replace in real application
        if ($userId == "admin") {
            $profile['ROLE'] = 'admin';
        } else if ($userId == "member") {
            $profile['ROLE'] = 'member';
        }

        $profile['ROLEID'] = 'RLE_2';
        $profile['GROUP'] = 'Member';
        $profile['GROUPID'] = 'GRP_3';
        $profile['POSITION'] = 'Marketing - France';
        $profile['POSITIONID'] = 'PSN_10';
        $profile['DIVISION'] = 'Marketing - Europe';
        $profile['DIVISIONID'] = 'DVN_5';
        $profile['ORG'] = 'IBM';
        $profile['ORGID'] = 'ORG_101';

        return $profile;
    }
Get user profile

@param string $userId
@return array array of user profile