# Custom User Settings

**URL:** <https://community.dreamfactory.com/t/custom-user-settings/473>\
**Category:** REST API\
**Created:** [October 17, 2014, 2:25pm UTC](https://community.dreamfactory.com/t/custom-user-settings/473 "2014-10-17T14:25:30Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![rgerz](https://avatars.discourse-cdn.com/v4/letter/r/77aa72/32.png) [@rgerz](https://community.dreamfactory.com/u/rgerz)\
**Post date:** [October 17, 2014, 2:25pm UTC](https://community.dreamfactory.com/t/custom-user-settings/473/1 "2014-10-17T14:25:30Z")

</div>

I am just wondering what the “Custom User Settings” in REST API are for (and mostly how to use them). I can’t find an example anywhere. setCustomSettings(), getCustomSettings(), etc. I was hoping to add a few fields in User (otherwise I will have to do user management in SQL tables).

Cheers!

---

<div class="post-metadata">

**Author:** ![toddappleton](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/toddappleton/32/159_2.png) [@toddappleton](https://community.dreamfactory.com/u/toddappleton)\
**Post date:** [October 20, 2014, 12:44pm UTC](https://community.dreamfactory.com/t/custom-user-settings/473/2 "2014-10-20T12:44:53Z")

</div>

Each user has their own custom settings consisting of name-value pairs. The REST API allows you to access these settings for the currently logged in user. For example you can create some custom settings like this:

```
POST /rest/user/custom with POST data = {"real_first_name":"Bob","real_last_name":"Smith"}

```

Now you can get all settings for the current user:

```
GET /rest/user/custom

```

Or get a single setting for the current user:

```
GET /rest/user/custom/real_first_name

```

You can update or add a single setting for the current user:

```
POST /rest/user/custom with POST data = {"real_first_name":"Joe"}

```

You can also delete settings but only one at a time:

```
DELETE /rest/user/custom/real_first_name
```

---

<div class="post-metadata">

**Author:** ![rgerz](https://avatars.discourse-cdn.com/v4/letter/r/77aa72/32.png) [@rgerz](https://community.dreamfactory.com/u/rgerz)\
**Post date:** [October 20, 2014, 12:59pm UTC](https://community.dreamfactory.com/t/custom-user-settings/473/3 "2014-10-20T12:59:39Z")

</div>

Thanx Todd. That is exactly what I was hoping for 🙂

Cheers!

---

<div class="post-metadata">

**Author:** ![luisrj](https://avatars.discourse-cdn.com/v4/letter/l/8baadc/32.png) [@luisrj](https://community.dreamfactory.com/u/luisrj)\
**Post date:** [June 15, 2015, 5:58pm UTC](https://community.dreamfactory.com/t/custom-user-settings/473/4 "2015-06-15T17:58:48Z")

</div>

Can I access as admin, to the custom user settings of any user ?

---

<div class="post-metadata">

**Author:** ![toddappleton](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/toddappleton/32/159_2.png) [@toddappleton](https://community.dreamfactory.com/u/toddappleton)\
**Post date:** [June 15, 2015, 6:51pm UTC](https://community.dreamfactory.com/t/custom-user-settings/473/5 "2015-06-15T18:51:03Z")

</div>

Yes. User settings are not exposed in the admin console, but they are available to admin users (or other users with role access to /system/user) via the API.

```
GET /rest/system/user?fields=user_data
```

---

<div class="post-metadata">

**Author:** ![jeffreystables](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/jeffreystables/32/173_2.png) [@jeffreystables](https://community.dreamfactory.com/u/jeffreystables)\
**Post date:** [July 30, 2015, 5:39pm UTC](https://community.dreamfactory.com/t/custom-user-settings/473/6 "2015-07-30T17:39:38Z")

</div>

I moved a post to an existing topic: [How to use iOS SDK SWGCustomSettings to set Custom Values](https://community.dreamfactory.com/t/how-to-use-ios-sdk-swgcustomsettings-to-set-custom-values/1321)

---

<div class="post-metadata">

**Author:** ![luisrj](https://avatars.discourse-cdn.com/v4/letter/l/8baadc/32.png) [@luisrj](https://community.dreamfactory.com/u/luisrj)\
**Post date:** [August 15, 2015, 2:22am UTC](https://community.dreamfactory.com/t/custom-user-settings/473/7 "2015-08-15T02:22:25Z")

</div>

My custom settings are:  
{  
“0”: 0,  
“1”: 0,  
}  
When I attempt delete the first setting from DF live API (0) I get the error message:“Deleting all custom settings is not currently supported.”

(No problem with setting 1)

---

<div class="post-metadata">

**Author:** ![jeffreystables](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/jeffreystables/32/173_2.png) [@jeffreystables](https://community.dreamfactory.com/u/jeffreystables)\
**Post date:** [September 8, 2015, 6:31pm UTC](https://community.dreamfactory.com/t/custom-user-settings/473/8 "2015-09-08T18:31:41Z")

</div>

You cannot have custom user settings with numerical field names (even numbers in quotes, e.g. “15”). This is a limitation that applies to 1.x only. In DreamFactory 2.0, the ability to name custom user settings with numbers or numerical strings is added.
