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

Ram 6 Reputation points
2020-10-22T06:15:28.733+00:00

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; }
}
Or

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?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,420 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. JamesTran-MSFT 36,596 Reputation points Microsoft Employee
    2020-10-23T22:53:43.697+00:00

    @Ram
    Thank you for your post!

    Any additional information would be greatly appreciated!

    If you have any other questions, please let me know.
    Thank you for your time and patience throughout this issue.

    0 comments No comments

  2. Ram 6 Reputation points
    2020-10-27T08:41:56.12+00:00

    Hi James,

    Thanks for your reply.

    This is something like Portal Azure sending null values to all updated fields, Can I log the outgoing request from Portal Azure for user provisioning?
    35238-capture.png

    The attachment has the fields displaying in portal Azure export details, but I am getting like below at SCIM endpoint {
    "op":"Replace",
    "path":"name.givenName",
    "value":{
    "ValueKind":3
    }

    If we can see the Azure provisioning request that could be very helpful.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.