# How can i extend user object?

**URL:** <https://forum.mautic.org/t/how-can-i-extend-user-object/23993>\
**Category:** Product Support\
**Tags:** mautic-4\
**Created:** [May 4, 2022, 2:13pm UTC](https://forum.mautic.org/t/how-can-i-extend-user-object/23993 "2022-05-04T14:13:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ooralas](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ooralas/32/7060_2.png) [@ooralas](https://forum.mautic.org/u/ooralas)\
**Post date:** [May 4, 2022, 2:13pm UTC](https://forum.mautic.org/t/how-can-i-extend-user-object/23993/1 "2022-05-04T14:13:54Z")

</div>

**Your software**  
My Mautic version is:  
v4.2.2  
My PHP version is:  
PHP Version 7.4.29  
My Database type and version is:  
10.6.7-MariaDB-1:10.6.7+maria~bionic  
**Your problem**  
My problem is:  
i need to extend the current user object, to add a new fields, so that i can use the new field as a variable in the emails  
These errors are showing in the log:

Steps I have tried to fix the problem:

---

<div class="post-metadata">

**Author:** ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)\
**Post date:** [May 5, 2022, 1:11am UTC](https://forum.mautic.org/t/how-can-i-extend-user-object/23993/2 "2022-05-05T01:11:38Z")

</div>

User as marketer or user as lead?

if lead… you can add custom fields via gui.

if marketer… i would add new table lets say user\_meta with FK user id to users table and add the columns you need.

Then you need to register field from user\_meta table as token (you need to subscribe to some events to get the field available in emails - but again so far I have done this for leads only - so not really sure if its possible for marketer).

Provide a little bit more context for further discussion if interested.

---

<div class="post-metadata">

**Author:** ![ooralas](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ooralas/32/7060_2.png) [@ooralas](https://forum.mautic.org/u/ooralas)\
**Post date:** [May 10, 2022, 12:44pm UTC](https://forum.mautic.org/t/how-can-i-extend-user-object/23993/3 "2022-05-10T12:44:54Z")

</div>

yes exactly i meant user as marketer. What you wrote me makes sense, I can start from it, later I’ll let you know if there is something new, because I think that is a feature that is reusable by many. I have found a Plug-in which allows us to create more Custom-objects, but that did .  
Thank you ^^
