Azure / Azure/AzureAD-BYOA-Provisioning-Samples

Azure Ad fails to update users using Patch

Open
#22 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
21
Forks
23
PR merge metrics
No merged PRs in 30d

Description

I have tested the API's using Postman and I can call them but when we test them with Azure AD the patch requests fail.

Looking at the logs and narrowing them down I've figured that the request is not in the same format as what microsoft.systemForCrossDomainIdentityManagement expects.

The patch request from AD is like below (which will fail):

```
{ "schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],

"Operations": [ {"op":"Replace","path":"displayName","value":" User X"} ]}
```

While the request that the nuget expects is like this:
```

{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"] ,

"Operations":[ {"op":"Replace","path":"displayName","value":

[ {"$ref":null,"value":"User x"}]}]

}

```
Please note the difference between 2 requests which in the 1st call is a string and in the second one is a list of objects.

How should I fix this?

The nuget package take the request and deliver the IPatchRequest so the requst doesn't even get to my part of the code :|

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.