我想通过 SCIM 端点添加一个复杂属性作为 wso2Extension 的另一个复杂属性的子属性。我已通过 SCIM 休息端点成功地将复杂属性作为 wso2Extension 的子属性添加到用户配置文件中。
下面给出了工作 curl 命令,用于将名为患者的复杂属性作为 wso2Extension 的子属性添加到用户配置文件中。
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
现在我想添加一个名为Professional的复杂属性作为 wso2Extension 的另一个复杂属性的子属性,我尝试使用以下 curl 命令。
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
用户创建成功,但配置文件中没有自定义属性。
请帮忙