# Extend User Entity

**URL:** <https://forum.mautic.org/t/extend-user-entity/15358>\
**Category:** Development\
**Created:** [July 24, 2020, 12:30pm UTC](https://forum.mautic.org/t/extend-user-entity/15358 "2020-07-24T12:30:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mautist](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mautist/32/1761_2.png) [@Mautist](https://forum.mautic.org/u/Mautist)\
**Post date:** [July 24, 2020, 12:30pm UTC](https://forum.mautic.org/t/extend-user-entity/15358/1 "2020-07-24T12:30:47Z")

</div>

Hi guys,

I try to extend the User Entity to override the getId() function. If i validate the doctrine:schema i get the following exception.

 ![Unbenannt](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/9/9526b8638402a6d569ad775cb16ab49113d70b92.png)

---

<div class="post-metadata">

**Author:** ![Cezar](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/cezar/32/5152_2.png) [@Cezar](https://forum.mautic.org/u/Cezar)\
**Post date:** [May 19, 2021, 7:00am UTC](https://forum.mautic.org/t/extend-user-entity/15358/2 "2021-05-19T07:00:38Z")

</div>

Hi,

Have you found a solution for this?

---

<div class="post-metadata">

**Author:** ![Mautist](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mautist/32/1761_2.png) [@Mautist](https://forum.mautic.org/u/Mautist)\
**Post date:** [May 19, 2021, 7:17am UTC](https://forum.mautic.org/t/extend-user-entity/15358/3 "2021-05-19T07:17:23Z")

</div>

Hi Cezar,

i found this Plugin [GitHub - TheDMSGroup/mautic-extended-field: Extends Mautic custom fields for scalability and HIPAA/PCI compliance.](https://github.com/TheDMSGroup/mautic-extended-field) and extended the Lead Entity like they did so i could override the getId() function.

Greetings
