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
Dual Super User
Dual 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

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
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (2,968)