Set user photo
BetaChanges data
Replaces a person's Microsoft 365 profile picture with a JPEG image.
Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The Microsoft Graph connection the step signs in with. |
| UserRequired | A user's object id, or their sign-in address. |
| PhotoRequired | Base64 of a JPEG — {{ file("photo.jpg").base64 }}. Microsoft Graph takes a photo of at most 4 MB. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `microsoft-graph`) |
user | text |
photoBase64 | textits `{{ }}` must give a string |
Output
| Field | Type |
|---|---|
updatedPhoto replaced | boolean |
user | string |
Sample output, and the expression for each field
- updatedtrue
- user"jane@contoso.com"
Errors
When a step of this node stops a run, the run page shows a code. Look it up:
Example step
The step as a flow file holds it. Replace each value in <…>.
{
"config": {
"connection": "<connection id>",
"photoBase64": "<photo>",
"user": "<user>"
},
"label": "Set user photo",
"type": "graph.setUserPhoto",
"version": 1
}