Update user
BetaChanges data
Changes a person's job title, department or other profile details in Microsoft 365.
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. |
| Display name | Leave a field blank to keep its value. A blank cannot clear one. |
| First name | text |
| Last name | text |
| Job title | text |
| Department | text |
| Office | text |
| Mobile phone | Needs the application permission User-Phone.ReadWrite.All as well. |
| Usage location | A two-letter country code, e.g. NL. A licence can only be assigned once it is set. |
| Can sign in | Needs User.EnableDisableAccount.All as well, and an admin role when the user is an admin. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `microsoft-graph`) |
user | text |
displayName | text |
givenName | text |
surname | text |
jobTitle | text |
department | text |
officeLocation | text |
mobilePhone | text |
usageLocation | text |
accountEnabled | "" or "true" or "false" |
Output
| Field | Type |
|---|---|
updated | boolean |
user | string |
changedProperties changed | array |
Sample output, and the expression for each field
- changed
- [0]"jobTitle"
- updatedtrue
- user"adele@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": {
"accountEnabled": "",
"connection": "<connection id>",
"department": "",
"displayName": "",
"givenName": "",
"jobTitle": "",
"mobilePhone": "",
"officeLocation": "",
"surname": "",
"usageLocation": "",
"user": "<user>"
},
"label": "Update user",
"type": "graph.updateUser",
"version": 1
}