I want to add a complex attribute as a sub attribute of another complex attribute of wso2Extension via SCIM endpoints. I have successfully added a complex attribute as a sub attribute of wso2Extension to the user profile via SCIM rest endpoints.
Given below the working curl command to add a complex attribute named patient as sub attribute of wso2Extension to the user profile.
curl -v -k --user admin:admin --data "{"schemas":[],"userName":"SureshAtt","password":"Wso2@123","wso2Extension":{"employeeNumber":"000111","costCenter":"111111","organization":"WSO2Org","division":"Engineering","department":"Intigration","patient":{"firstName":"Test Patient","displayName":"Test Patient"}}}" --header "Content-Type:application/json" https://localhost:9443/wso2/scim/Users
Now i want to add a complex attribute named professional as a sub attribute of another complex attribute of wso2Extension, I tried with the following curl command.
curl -v -k --user admin:admin --data "{"schemas":[],"userName":"SureshAtt","password":"Wso2@123","wso2Extension":{"employeeNumber":"000111","fax":"1233","costCenter":"111111","organization":"WSO2Org","division":"Engineering","department":"Intigration","patient":{"professional":{"firstName":"Test Patient","displayName":"Test Patient"}}}}" --header "Content-Type:application/json" https://localhost:9443/wso2/scim/Users
User created successfully, But no custom attributes are in the profile.
Please help