diff --git a/main/webservices/registration.soap.php b/main/webservices/registration.soap.php index 841c8ac022..3c15801651 100755 --- a/main/webservices/registration.soap.php +++ b/main/webservices/registration.soap.php @@ -4920,6 +4920,14 @@ function WSGetUserFromUsername($params) $result['lastname'] = $user_data['lastname']; $result['email'] = $user_data['email']; + // Get extra fields + $fieldValue = new ExtraFieldValue('user'); + $extra = $fieldValue->getAllValuesByItem( + $result['user_id'] + ); + + $result['extra'] = $extra; + if ($debug) { error_log('User found :) return value '.print_r($result, 1)); }