# fetch UserInfo

**URL:** <https://forum.shopware.com/t/fetch-userinfo/50079>\
**Category:** International (English Only)\
**Tags:** programming\
**Created:** [18. Dezember 2017 um 06:34 UTC](https://forum.shopware.com/t/fetch-userinfo/50079 "2017-12-18T06:34:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jijo](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@jijo](https://forum.shopware.com/u/jijo)\
**Post date:** [18. Dezember 2017 um 06:34 UTC](https://forum.shopware.com/t/fetch-userinfo/50079/1 "2017-12-18T06:34:23Z")

</div>

Under the file /engine/Shopware/Bundle/AccountBundle/Service/StoreFrontCustomerGreetingService.php, there is fiunction&nbsp; **fetchUserInfo,** which fetches the user info like firstname lastname etc. I would like to ge tthe user company name also here. It is in the “s\_user\_billingaddress” table. How can i extent the function in another file and make the necessary changes in query, so that the&nbsp; original shopware file is kept intact and we work on&nbsp; the extended file for this change

&nbsp;

---

<div class="post-metadata">

**Author:** ![BestShopPossible](https://avatars.discourse-cdn.com/v4/letter/b/6bbea6/32.png) [@BestShopPossible](https://forum.shopware.com/u/BestShopPossible)\
**Post date:** [21. Dezember 2017 um 14:56 UTC](https://forum.shopware.com/t/fetch-userinfo/50079/2 "2017-12-21T14:56:25Z")

</div>

[https://developers.shopware.com/developers-guide/](https://developers.shopware.com/developers-guide/)
