Quantcast
Channel: Azure Active Directory forum
Viewing all articles
Browse latest Browse all 16000

GA Version Bug: Cannot edit users because of assignedPlans property being read-only

$
0
0

Error message: Property 'assignedPlans' is read-only and cannot be set.

I have placed the following code into the Edit (HttpPost) method of the MVC Graph Directory sample:

var u = DirectoryService.users.Where(it => (it.objectId == user.objectId)).SingleOrDefault();
u.city = "Vienna";
DirectoryService.UpdateObject(u);
DirectoryService.SaveChanges(SaveChangesOptions.PatchOnUpdate);

This is the simplest four line repro to get the error (yes, I did that with my tenant that works a-ok with 0.9 API version)

Chris


Christoph Wille - Glengamoi Alumni - Realnamen sind ein Gebot der Höflichkeit in der Community


Viewing all articles
Browse latest Browse all 16000

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>