# Set Photo

### Description

Downloads a JPEG image from a URL and uploads it as the user's profile photo. This is useful to set or update user avatars in Microsoft 365.

### Location

User → Userinfo → Set Photo

**Full Runbook name**

rjgit-user\_userinfo\_set-photo

### Permissions

#### Application permissions

* **Type**: Microsoft Graph
  * User.ReadWrite.All

### Parameters

#### UserName

User principal name of the target user.

| Property      | Value  |
| ------------- | ------ |
| Required      | true   |
| Default Value |        |
| Type          | String |

#### PhotoURI

URL to a JPEG image that will be used as the profile photo.

| Property      | Value  |
| ------------- | ------ |
| Required      | true   |
| Default Value |        |
| Type          | String |

[Back to Runbook Reference overview](https://docs.realmjoin.com/automation/runbooks/runbook-references)
