FlowmageDocs

Set user photo

BetaChanges data

Replaces a person's Microsoft 365 profile picture with a JPEG image.

Settings

SettingWhat it is
ConnectionRequiredThe Microsoft Graph connection the step signs in with.
UserRequiredA user's object id, or their sign-in address.
PhotoRequiredBase64 of a JPEG — {{ file("photo.jpg").base64 }}. Microsoft Graph takes a photo of at most 4 MB.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `microsoft-graph`)
usertext
photoBase64textits `{{ }}` must give a string

Output

FieldType
updatedPhoto replacedboolean
userstring
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
}