Skip to main content

Get User Image

Retrieve the profile image for a user.

GET https://instance.securid.com/aveksa/command.submit?cmd=getUserImage

note

When called with a trusted application token and no userId, the image for the trusted app user is returned. When no image has been set for the specified user, the response is 200 with an empty JSON body (not an error).

Request

Parameters

getUserImage
userIdThe numeric ID of the user. If omitted, the image for the trusted app user is returned.

Headers

Bearer token
Acceptapplication/json
Content-Typeapplication/json

Response

When an image exists, the response body is a binary PNG and Content-Type is image/png.

When no image is set (or the user does not exist), the response is 200 with the following JSON body:

{
"data": {
"type": "getUserImage"
}
}

Examples

Request

curl -K -X GET \
"https://instance.securid.com/aveksa/command.submit?cmd=getUserImage&format=json&userId=<user-id>" \
-H "Authorization: Bearer <token>" \
-o user.png

Response

The response body contains the binary PNG image data (Content-Type: image/png).

Verified with RSA Governance & Lifecycle version 8.0.0.188886 P10_HF01.