我正在使用以下 curl 命令通过 SCIM Rest API 测试 WSO2 5.10 用户创建
curl -v -k --user admin:admin --data "{"schemas":[],"name":{"familyName":"Smith","givenName":"John"},"userName":"john","password":"password","emails":[{"primary":true,"value":"jsmith@test.com","type":"home"},{"value":"jsmith@test.com","type":"work"},{"value":"jsmith@test.com"}],"EnterpriseUser":{askPassword:"true"}}" --header "Content-Type:application/json" https://localhost:9443/scim2/Users
它按预期创建用户,但不发送电子邮件来设置密码。但是,当管理员尝试通过管理控制台为同一场景创建用户时,用户会收到一封电子邮件以设置密码。但不是通过这个 API 请求。
我究竟做错了什么?