Share via

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 Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments

2 answers

Sort by: Most helpful
  1. 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.

    Was this answer helpful?


  2. JamesTran-MSFT 37,256 Reputation points Microsoft Employee Moderator
    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.

    Was this answer helpful?

    0 comments No comments

Your answer

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