cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
snorf
Frequent Visitor

Using Graph to update Planner 'owner'

Been trying to use the HTTP connector and graph with delegated API permissions to update the owner of a Plan.
According to the docs it looks to me like it should be possible:
https://docs.microsoft.com/en-us/graph/api/plannerplan-update?view=graph-rest-1.0&tabs=http

But I am getting the following error:
Schema validation has failed. Validation for field 'ContainerId', on entity 'Plan' has failed: This field is read only and cannot be changed.

The request looks as follows:
PA2.PNG

Running the same request as above but updating the 'title' instead of 'owner' works.

I am owner of both of the 365 groups, the current one and the one I am trying to move it to.

2 REPLIES 2
Expiscornovus
Super User
Super User

Hi @snorf,

 

Don't know if it helps. But I can reproduce your issue in Graph Explorer as well. So, it feels like a bug or the documentation needs some clarification 😁

 

graphexplorer_repro.png



Happy to help out! 🙂

Interested in more #PowerAutomate #SharePointOnline or #PowerVirtualAgents content?
Visit my blog, Subscribe to my YouTube channel or Follow me on Twitter


It looks like it simply cannot be updated, according to this:
https://github.com/microsoftgraph/microsoft-graph-docs/blob/main/api-reference/beta/resources/planne...

owner (deprecated)StringUse the container property instead. ID of the group that owns the plan. After it is set, this property can’t be updated. This property will not return a valid group ID if the container of the plan is not a group.



Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (5,222)