FlowmageDocs

Update user

BetaChanges data

Changes a person's job title, department or other profile details in Microsoft 365.

Settings

SettingWhat it is
ConnectionRequiredThe Microsoft Graph connection the step signs in with.
UserRequiredA user's object id, or their sign-in address.
Display nameLeave a field blank to keep its value. A blank cannot clear one.
First nametext
Last nametext
Job titletext
Departmenttext
Officetext
Mobile phoneNeeds the application permission User-Phone.ReadWrite.All as well.
Usage locationA two-letter country code, e.g. NL. A licence can only be assigned once it is set.
Can sign inNeeds User.EnableDisableAccount.All as well, and an admin role when the user is an admin.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `microsoft-graph`)
usertext
displayNametext
givenNametext
surnametext
jobTitletext
departmenttext
officeLocationtext
mobilePhonetext
usageLocationtext
accountEnabled"" or "true" or "false"

Output

FieldType
updatedboolean
userstring
changedProperties changedarray
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
}