U
Unable to read modified values from Azure PATCH
Guest
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:ietfarams:scim:api:messages:2.0atchOp"
],
"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?
Continue reading...
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:ietfarams:scim:api:messages:2.0atchOp"
],
"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?
Continue reading...