Hi I use wso2is version 5.4.1 as identity server.

I want to create user using scim2 api. 
When user is created, an email is sent to the user and he will be able to click on a link recieved in email and through the link he will be able to change password - that is what I mean with askPassword user as specified here: <https://docs.wso2.com/display/IS541/Creating+Users+Using+the+Ask+Password+Option>

**First option (WORKS) how to create user using WSO2 managment console** 

[![enter image description here](https://i.stack.imgur.com/gmWDy.png)](https://i.stack.imgur.com/gmWDy.png)

This scenario works and email is sent.

**Second option (DOESN'T WORK) how to create user using SCIM2** 

```
curl -v -k --user admin:admin --data {"schemas":[],"name":{"familyName":"Smith","givenName":"Paul"},"userName":"Test","password":"password","emails":[{"primary":true,"value":"Test@abc.com","type":"home"},{"value":"paulSmith@abc.com","type":"work"}],"EnterpriseUser":{askPassword:"true"}} --header "Content-Type:application/json" https://mylink:port/scim2/Users

```

Wso2is console outputs: 

[![enter image description here](https://i.stack.imgur.com/qfbZq.png)](https://i.stack.imgur.com/qfbZq.png)