# How to add custom user fields?

**URL:** <https://discourse.getcockpit.com/t/how-to-add-custom-user-fields/965>\
**Category:** Uncategorized\
**Created:** [August 8, 2019, 9:37am UTC](https://discourse.getcockpit.com/t/how-to-add-custom-user-fields/965 "2019-08-08T09:37:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![libinprasanthD](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/libinprasanthd/32/402_2.png) [@libinprasanthD](https://discourse.getcockpit.com/u/libinprasanthD)\
**Post date:** [August 8, 2019, 9:37am UTC](https://discourse.getcockpit.com/t/how-to-add-custom-user-fields/965/1 "2019-08-08T09:37:28Z")

</div>

How to add custom user fields ?

---

<div class="post-metadata">

**Author:** ![artur](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/artur/32/4_2.png) [@artur](https://discourse.getcockpit.com/u/artur)\
**Post date:** [August 10, 2019, 9:17pm UTC](https://discourse.getcockpit.com/t/how-to-add-custom-user-fields/965/2 "2019-08-10T21:17:03Z")

</div>

In your config `config/config.php` you can define custom fields to extend account information

```auto
<?php

return [

    'account' => [
        'fields' => [

            'adress' => [
                'type' => 'text',
                'label' => 'textarea',
            ],

            'phone' => [
                'type' => 'text',
                'label' => 'Telephone Number'
            ]
        ]
    ],

];

```

---

<div class="post-metadata">

**Author:** ![ronaldaug](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/ronaldaug/32/260_2.png) [@ronaldaug](https://discourse.getcockpit.com/u/ronaldaug)\
**Post date:** [April 9, 2023, 4:12pm UTC](https://discourse.getcockpit.com/t/how-to-add-custom-user-fields/965/3 "2023-04-09T16:12:28Z")

</div>

Hi @artur , I could add custom fields to user object, however, there is no UI like v1. Any work around with this?

 ![Screen Shot 2023-04-09 at 10.38.36 PM](https://canada1.discourse-cdn.com/flex030/uploads/getcockpit/original/2X/a/a20a1f1b774e1f6d00a9ea835cb1a0f64e25febb.png)
