I'm trying to generate an OTP (One Time Password) with force 'adminForcedPasswordReset' to true using Curl command is :
curl -v -k --user admin:admin -X PATCH -d
'{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"replace","value":{"adminForcedPasswordReset":"true"}}]}' --header "Content-Type:application/json"
https://XXXXXXXX:9443/scim2/Users/5cc8f65f-8be7-4e34-bd2f-67dc409f6770
what i receive in the log :
TID: [-1234] [] [2018-05-28 13:18:39,395] INFO {org.wso2.carbon.identity.scim2.common.impl.SCIMUserManager} - User: dev is retrieved through SCIM.
TID: [-1234] [] [2018-05-28 13:18:39,524] INFO {org.wso2.carbon.identity.scim2.common.impl.SCIMUserManager} - User: dev updated through SCIM.
TID: [-1234] [] [2018-05-28 13:18:39,600] INFO {org.wso2.carbon.identity.scim2.common.impl.SCIMUserManager} - User: dev is retrieved through SCIM.
BUT the OTP is not generated ! also the adminForcedPasswordReset not set to true.
it works well with a soap request referring to this url