Unable to read the modified values from PATCH request from Portal Azure provisioning RRS feed

  • Question

  • I have implemented a SCIM API by following the


    Tutorial - Build a SCIM endpoint and configure user provisioning with Azure AD

    If I Created a User in Portal Azure it's creating a User in my Non-Gallery application, But if I have updated any fields then the Portal azure sending a Request like below and the request getting failed, for modified fields the modified value coming like "ValueKind":3

    { "schemas":[ "urn:ietf:params:scim:api:messages:2.0:PatchOp" ], "id":null, "externalId":null, "userName":null, "displayName":null, "title":null, "preferredLanguage":null, "name":null, "emails":null, "meta":null, "active":false, "addresses":null, "phoneNumbers":null, "operations":[ { "op":"Add", "path":"displayName", "value":{ "ValueKind":3 } }, { "op":"Replace", "path":"name.givenName", "value":{ "ValueKind":3 } }, { "op":"Add", "path":"name.formatted", "value":{ "ValueKind":3 } }, { "op":"Replace", "path":"externalId", "value":{ "ValueKind":3 } } ], "manager":null, "department":null, "employeeNumber":null }

    I have designed my class like below

     public class Operation
                public string op { get; set; }
                public string path { get; set; }
                public object value { get; set; }


    public class Operation
            public string op { get; set; }
            public string path { get; set; }
            public dynamic value { get; set; }

    But both objects doesn't work for me.

    Can someone help me to resolve this issue?

    Monday, October 19, 2020 1:36 PM

All replies

  • Post your question here


    Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

    NuGet BaseConnectionLibrary for database connections.

    profile for Karen Payne on Stack Exchange

    Tuesday, October 20, 2020 1:25 AM
  • Hi,

    Thank you for posting here.

    This is a json, Visual Studio 2019 provides a practical function to generate classes based on the json structure.

    This is the class it generates:

    public class Rootobject
        public string op { get; set; }
        public string path { get; set; }
        public Value value { get; set; }
    public class Value
        public int ValueKind { get; set; }

    Best REgards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, October 20, 2020 1:31 AM
  • Hi Timon,

    Thanks for your reply..

    But, Issue was not with the class mapping, Why Azure portal provisioning patch request sending like  

    { "op":"Add", "path":"name.formatted", "value":{ "ValueKind":3 } },

    instead of sending the updated values like

    { "op":"Add", "path":"name.formatted", "value": "New Name" },

    For your reference


    Wednesday, October 21, 2020 1:39 PM
  • As Karen said, please post in the Azure forums. This forum is for C#-language specific questions. We don't provide Azure support here.

    Michael Taylor http://www.michaeltaylorp3.net

    Wednesday, October 21, 2020 2:26 PM