Search column – How do I add a new value user field in the Sharepoint list?

Single User field Value

The example shows how to create a task item and specify a single value Assigned to field

// Create a task item
var taskProperties = {
& # 39; __ metadata & # 39 ;: {& # 39; type & # 39 ;: & # 39; SP.Data.TasksListItem & # 39;},
"Title": "Order Confirmation",
& # 39; AssignedToId & # 39 ;: 10
};
createListItem (_spPageContextInfo.webAbsoluteUrl, & # 39; tasks & # 39 ;, taskProperties)
.done (function (data)
{
console.log (& # 39; task was successfully created & # 39;);
})
.Fail(
Function (error) {
console.log (JSON.stringify (error));
});

You must pass the ID as the text (name) instead of the value.