# User custom fields for SSO payload

**URL:** https://meta.discourse.org/t/user-custom-fields-for-sso-payload/87256
**Category:** Support
**Created:** [May 11, 2018, 11:57am UTC](https://meta.discourse.org/t/user-custom-fields-for-sso-payload/87256 "2018-05-11T11:57:55Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![kinqsley](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kinqsley/32/204080_2.png) [@kinqsley](https://meta.discourse.org/u/kinqsley)
#### Post date: [May 11, 2018, 11:57am UTC](https://meta.discourse.org/t/user-custom-fields-for-sso-payload/87256/1 "2018-05-11T11:57:55Z")

</div>

How can I update user’s custom field value through SSO payload params everytime the user logins?

I am using a sso for php repo by [GitHub - cviebrock/discourse-php: A PHP class for helping with Discourse's SSO login · GitHub](https://github.com/cviebrock/discourse-php)

I have created a user custom field named **Fame**

```
$params= array('name' => 'johndoe', 'custom.Fame' => '7788' );
$query = $sso->getSignInString($nonce, $session->id, $session->email, $params);

```

But it doesn’t update to the user.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [May 13, 2018, 11:32pm UTC](https://meta.discourse.org/t/user-custom-fields-for-sso-payload/87256/2 "2018-05-13T23:32:26Z")

</div>

Try enabling sso verbose logging in site settings, do you see the proper payload?

---

<div class="post-metadata">

### Author: ![kinqsley](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kinqsley/32/204080_2.png) [@kinqsley](https://meta.discourse.org/u/kinqsley)
#### Post date: [May 15, 2018, 11:12am UTC](https://meta.discourse.org/t/user-custom-fields-for-sso-payload/87256/3 "2018-05-15T11:12:13Z")

</div>

I have solved it with `custom.user_field_1` .

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 8, 2024, 12:37pm UTC](https://meta.discourse.org/t/user-custom-fields-for-sso-payload/87256/4 "2024-06-08T12:37:27Z")

</div>

This topic was automatically closed after 2220 days. New replies are no longer allowed.
