Get user photo
BetaReads data
Downloads a person's Microsoft 365 profile picture as a file.
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. |
| Size | Pixels. A size larger than the photo the user uploaded is not available. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `microsoft-graph`) |
user | text |
size | "" or "48x48" or "64x64" or "96x96" or "120x120" or "240x240" or "360x360" or "432x432" or "504x504" or "648x648" |
Output
| Field | Type |
|---|---|
nameFile name | string |
contentType | string |
base64File contents (base64) | string |
sizeSize in bytes | number |
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
}