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.

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

This command returns no output parameters. Use the HTTP status code to determine 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

{
"data": {
"type": "setUserImage"
}
}

Verified with RSA Governance & Lifecycle version 8.0.0.188886 P10_HF01.