3

Is it possible to set (Update/Create) 2 users to the AssignedTo column in SharePoint Online?

I am using REST-API (JS). When I put one user with:

AssignedTo "- 1; #USER@company.com"

it works, but how do I add two or more users into the same item?

5

First of all you have to Allow multiple selections in AssignedTo column.

enter image description here

To add/update multi valued Person or Group column, you have to specify the ID's of the Persons or Groups like

var data = {
    __metadata: { "type": "SP.Data.TestListItem" },
    Title: "Some title",
    AssignedToId: { 'results': [11,22] } 
}

You will find more in this CRUD Operation to List Using SharePoint 2013 Rest API

2
  • thanks :) it worked and I have found another way that works well AssignedTo " ; #ID ; #ID ; #ID "
    – Man SP
    Jan 22 '16 at 12:26
  • 1
    It is by default set to accept more than one person. I am trying and I keep getting a 400 error?
    – BeerusDev
    Aug 26 '21 at 12:57

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.