SAP Sponsorships Engine Security Webservices API

URL: /api/restsecurity/user

Description:

The service creates reads, updates or deletes a user object, based on the HTTP method used. This endpoint cannot be used to update the password. See change_password.


Request Method: PUT
Output format: a JSON document of the following format, documenting the successful update of the user object
{"username":"abc","access_token":"gISIhDNIFoXEVxzefrKUcXYOFKwBfq1xDPfv4wQdDjA="}
Mandatory parameters:
username
email
fullName
company
Example: curl -X PUT "http://127.0.0.1:8888/security/api/restsecurity/user?username=uhl&email=axel.uhl@sap.com&fullName=Axel%20Uhl&company=SAP%20SE"
Will provide a JSON document as explained above.
Request Method: GET
Output format: a JSON document of the following format
{"username":"abc","access_token":"gISIhDNIFoXEVxzefrKUcXYOFKwBfq1xDPfv4wQdDjA="}
Optional parameter:
username
If provided, the record for the user with that name will be shown. This requires this user to be the currently authenticated subject, or the authenticated subject needs to have administrator permissions.
Example: curl "http://admin:admin@127.0.0.1:8888/security/api/restsecurity/user?username=uhl"
Will provide a JSON document as explained above.
Request Method: DELETE
Output format: An Empty response with status code 200 in case of success; error-indicating status codes otherwise
Mandatory parameters:
username
Example: curl -X DELETE "http://admin:admin@127.0.0.1:8888/security/api/restsecurity/user?username=uhl"