# Is it possible to extend user collection with custom fields

**URL:** <https://community.cumulocity.com/t/is-it-possible-to-extend-user-collection-with-custom-fields/5519>\
**Category:** Forum\
**Tags:** cumulocity\
**Created:** [May 26, 2021, 2:58pm UTC](https://community.cumulocity.com/t/is-it-possible-to-extend-user-collection-with-custom-fields/5519 "2021-05-26T14:58:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![milos.ilic](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@milos.ilic](https://community.cumulocity.com/u/milos.ilic)\
**Post date:** [May 26, 2021, 2:58pm UTC](https://community.cumulocity.com/t/is-it-possible-to-extend-user-collection-with-custom-fields/5519/1 "2021-05-26T14:58:28Z")

</div>

Hello,

Is it possible to extend user resource in user collection with custom properties, e.g. we would like to add  
token property (string type) to the user resource in order to send notifications to the user device. Maybe later on, we would like to add/extend with some additional property as well like some user settings.

We are reffering to :  
[http://cumulocity.com/api/#operation/putUserResource](http://cumulocity.com/api/#operation/putUserResource)

and we don’t see possibility for such customization.

Kind regards,  
Miloš

---

<div class="post-metadata">

**Author:** ![Tristan\_Bastian](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/tristan_bastian/32/18259_2.png) [@Tristan\_Bastian](https://community.cumulocity.com/u/Tristan_Bastian)\
**Post date:** [May 26, 2021, 4:09pm UTC](https://community.cumulocity.com/t/is-it-possible-to-extend-user-collection-with-custom-fields/5519/2 "2021-05-26T16:09:13Z")

</div>

Hello Miloš,

The user object has a `customProperties` attribute that you can use for storing your custom attributes within it.  
This attribute is actually not listed for some reason within the request body, but the response sample of the linked API does list it:

```auto
{
    "self": "https://<TENANT_DOMAIN>/user/{tenant}/jdoe",
    "firstName": "John",
    "lastName": "Doe",
    "userName": "jdoe",
    "id": "123",
    "displayName": "jdoe",
    "phone": "+1-541-754-3010",
    "email": "johndoe@example.com",
    "newsletter": true,
    "lastPasswordChange": "2020-06-09T09:48:40.008Z",
    "shouldResetPassword": false,
    "passwordStrength": "GREEN",
    "enabled": true,
    "customProperties": {
		"language": "en"
	}
}

```

Kind Regards,  
Tristan

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)\
**Post date:** [August 24, 2021, 4:09pm UTC](https://community.cumulocity.com/t/is-it-possible-to-extend-user-collection-with-custom-fields/5519/3 "2021-08-24T16:09:56Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
