Skip to main content

Set User Image

Set the profile image for a user.

POST https://instance.securid.com/aveksa/command.submit?cmd=setUserImage

note

Requires User:Edit privilege for the specified user. The image must be sent Base64 encoded in the request body with Content-Type: image/png.

note

Prior to 8.0.0 P13, a userId that did not exist in the system returned 200 with a success body instead of an error. This is fixed as of 8.0.0 P13, setUserImage now returns 404 with User '<userId>' not found in the system.

Request​

Parameters​

setUserImage
formatproperties - (Default) Returns the response as key=value pairs.

json - Returns the response as JSON.
userIdThe user ID of the user to set the image for. If omitted, the image is applied to the user associated with the token.

Headers​

Bearer token
Acceptapplication/json
image/png

Body​

Base64 encoded PNG image data.

Response​

Parameters​

userIdThe user ID the image was set for.
statusCodeHTTP status code of the operation, as a string.
messageHuman-readable result message.
actionsaved on success.

Examples​

Request​

curl -K -X POST \
"https://instance.securid.com/aveksa/command.submit?cmd=setUserImage&userId=1" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: image/png" \
-d "<base64-encoded PNG data>"

Response​

userId=jsmith
statusCode=200
message=The File upload for userId=jsmith completed successfully
action=saved

Verified with RSA Governance & Lifecycle version 8.0.0.188886 P10_HF01.