FlowmageDocs

Get user photo

BetaReads data

Downloads a person's Microsoft 365 profile picture as a file.

Settings

SettingWhat it is
ConnectionRequiredThe Microsoft Graph connection the step signs in with.
UserRequiredA user's object id, or their sign-in address.
SizePixels. A size larger than the photo the user uploaded is not available.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `microsoft-graph`)
usertext
size"" or "48x48" or "64x64" or "96x96" or "120x120" or "240x240" or "360x360" or "432x432" or "504x504" or "648x648"

Output

FieldType
nameFile namestring
contentTypestring
base64File contents (base64)string
sizeSize in bytesnumber
Sample output, and the expression for each field
  • base64"/9j/"
  • contentType"image/jpeg"
  • name"photo.jpg"
  • size3

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>",
    "size": "",
    "user": "<user>"
  },
  "label": "Get user photo",
  "type": "graph.getUserPhoto",
  "version": 1
}