Change password for calling user if user type is a dialog user.
Hint: CNBS Trace utility will not capture request body, therefor user password are not saved in trace data (hard coded!)

/cnbs/v1/user/change_password
POST

High level summary of required operations:

  • Calling user can change is own password
  • As of SAP system restriction, password change can be done only onse a day
  • SAP default password rules must be fullfilld

Required

  • Current password (current_password)
  • New password (new_password)

Example POST

JSON Payload:

{
  "current_password": "Initial01",
  "new_password": "Zufght#$"
}

cURL

curl -X POST "https://<<your.server.here>>/cnbs/v1/user/change_password?sap-client=800&sap-language=EN&apiid=CNBSMV01R" -H "accept: application/json" -H "cnbssysid: gPuM1VyY1dxlTE2MEs2yajJUkX3/4+2Pw1alRw4BOtI=" -H "authorization: Basic Y2tvZXNzbHQ6dGVzdDAx" -H "Content-Type: application/json" -d "{ \"current_password\": \"Initial01\", \"new_password\": \"Zufght#$\"}"
  • Status (status)
    • Message Type (message_type)
      • SAP Message Type.
        • Errors:
          • E = Error
          • A = Abort
          • X = Exception
        • Others:
          • S = Success
          • W = Warning
          • I = Information
    • Message Identifier (message_identification)
      • SAP Message ID.
    • Message Number (message_number)
      • SAP Message Number.
    • Message Line (message_line_string)
      • SAP Message Text.

JSON:

{
  "message_type": "S",
  "message_identification": "S>",
  "message_number": 506,
  "message_line_string": "Password has been changed"
}
  • public/docs/webarapi/v102/change_password.txt
  • Last modified: 2019/01/11 09:32
  • by Christian Koessl