> For the complete documentation index, see [llms.txt](https://docs.appfarm.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.appfarm.io/library/action-nodes/set-user-account-image.md).

# Set user account image

The Set user account image action node triggers a file upload dialog for a [user](/reference/security/users.md) to add or update their own profile image.

## Usage

This action node is useful when you would like client users to upload their own profile images. You can then display user avatars in the UI, for example to show a picture of the user who is responsible for a specific customer or project.

The URL of the image is stored in the **Profile Image** property of their User object. When an image has been uploaded, the **Profile Image Exists** property on their User object will be `true`.

Once an image is uploaded, the User object is immediately updated in the database. It is not necessary to persist any changes.

{% hint style="warning" %}
**Important**

* Set user account image is considered to be an update to a user account, and the logged-in user must have a Role membership allowing update of user accounts.
* The appropriate user account manipulation properties must be enabled for the relevant [environment](/reference/configuration/environments.md#user-account-manipulation).
  {% endhint %}

## Properties

<table><thead><tr><th width="241">Property</th><th>Description</th></tr></thead><tbody><tr><td><strong>Clear Image</strong></td><td>Do not trigger the file upload dialog and instead clear the existing image. The <strong>Profile Image Exists</strong> property on the User object will become <code>false</code>.</td></tr><tr><td><strong>Throw Cancel Exception</strong></td><td>Throw a exception if the user cancels the file upload dialog and does not upload an image. The exception can be caught using a <a href="/spaces/-MiLU-xcHu0eLZiTxcmZ/pages/4G4Oli9kT81f2eegFZak">Catch exception action node</a>.</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.appfarm.io/library/action-nodes/set-user-account-image.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
