Welcome to the WSO2 Identity Server source code! For info on working with the WSO2 Identity Server repository and contributing code, click the link below.
[SCIM2] attempting to specify middleName causes "Error in adding the user: abc123 to the user store. Cannot access the directory context or user already exists in the system for user" #3473
{"schemas":"urn:ietf:params:scim:api:messages:2.0:Error","detail":"Error in adding the user: abc123 to the user store. Cannot access the directory context or user already exists in the system for user :abc123","status":"500"}
and no console output is visible from the WSO2 server.
However, when removing the middleName field & issuing:
name.middleName is specified in RFC 7643 section 4.1.1, so it shouldn't cause errors like this. In addition, unexpected parameters should be silently ignored per RFC 7644 section 3.3: "Since the server is free to alter and/or ignore POSTed content, returning the full representation can be useful to the client, enabling it to correlate the client's and server's views of the new resource."
This issue is being closed due to extended inactivity. Please feel free to reopen it if further attention is needed. Thank you for helping us keep the issue list relevant and focused!
When attempting to create a user on IS 5.6.0, with the default claim mappings & SCIM endpoint security turned off, with the command:
the response received is:
and no console output is visible from the WSO2 server.
However, when removing the middleName field & issuing:
the response is:
name
.middleName
is specified in RFC 7643 section 4.1.1, so it shouldn't cause errors like this. In addition, unexpected parameters should be silently ignored per RFC 7644 section 3.3: "Since the server is free to alter and/or ignore POSTed content, returning the full representation can be useful to the client, enabling it to correlate the client's and server's views of the new resource."