User custom fields for SSO payload


(Kingsley) #1

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

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.


(Sam Saffron) #2

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


(Kingsley) #3

I have solved it with custom.user_field_1 .