Planner tasks assignee is not getting updated properly using Graph API
Describe the bug When we try to update assignee of planner tasks, assigned user details not getting updated properly. Task is assigned to User-A, when I try to update the the task with User-B, the User-B gets appended to Assignee and the assigned users will be User-A and User-B instead of just User-B. Here we are trying to update the task details using graph API patch operation. Graph API patch operation is not returning any issues but user details are not getting updated properly.
To Reproduce Used below graph API call to update the assigned users
this.graphClient = await this.webPartContext.msGraphClientFactory.getClient(); const taskDetails = await this.graphClient .api(planner/tasks/${taskId}) .version('v1.0') //.header(If-Match, etag) .headers({["Prefer"]: "return=representation", ["if-Match"]: etag, ["Content-type"]: "application/json"}) .patch({assignments : Userdetails});
Expected behavior Task should get updated with only User-B
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
Dupe... as I said in my comment on #5940 yesterday, this isn't related to SharePoint... this is a Graph issue. Please refer to their forums: https://developer.microsoft.com/en-us/graph/support
Plus, in the future, please use the template we provide on new issues. As that template states, if you don't complete the sections provided, we'll close the issue as an incomplete submission.
Thank you for your submission. As explained in our wiki (Issue List: What doesn't belong in the issue list), this issue list is for SharePoint developer/development issues. All capability question/discussion questions, or topics related to SharePoint administration & end-user topics should be reported through the support user interface available in the tenant admin settings. You can also have a discussion and ask questions at the SharePoint TechCommunity forum. You can learn more about this in our wiki: type:invalid-not-dev-issue
Closing this issue as a dupe. Please refer to our wiki for more details: Issue List Labels: status:duplicate
Thank you for your submission, but there isn't enough detail in the issue for us to review & move forward. The new issue template includes sections for you to fill out. Please resubmit your issue and complete the provided sections in the new item template so we can move forward on it refer to our wiki for more information: How to Create Good Issues