I have used following code to add users and groups to a list item of type SpFieldUserValue. it works if there is one single user or group in my client side people picker but if there is more than one Entity in the people picker then it says "the user does not exist or is not unique"

 var users = peoplePicker.GetAllUserInfo();
 for (var i = 0; i < users.length; i++) {
     userName = user["Description"];                

in another method:

 requestedSiteItem.set_item('Owner', myArray);
  • I think this thread is what you are looking for: sharepoint.stackexchange.com/questions/47872/… – Vardhaman Deshpande Mar 8 '13 at 17:11
  • thanks for your answer. I have alrady seen this thread. Using javascript and array, but it works only when the array contains one item. when the array contains more than one item it generates error – Medes Mar 8 '13 at 21:56

Does the column support multiple users ?

If you have a custom people picker in the page to which you are trying to add, make sure that "AllowMultiple" is set in the HTML markup

  • Thank you this solved my problem, I went to list settings, chose the column and changed "allow Multiple selections" to "YES". But I can't find it in the markup for the column in the schema file. what is its name? AllowMultipleVote or something? thanks again. – Medes Mar 11 '13 at 9:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.