FlowmageDocs

Set manager

BetaChanges data

Changes who a person reports to in your Microsoft 365 directory.

Settings

SettingWhat it is
ConnectionRequiredThe Microsoft Graph connection the step signs in with.
UserRequiredA user's object id, or their sign-in address.
Manager idRequiredThe manager's object id. It replaces any manager the user has.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `microsoft-graph`)
usertext
managerIdtext

Output

FieldType
updatedboolean
userstring
managerManager idstring
Sample output, and the expression for each field
  • manager"2"
  • 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": {
    "connection": "<connection id>",
    "managerId": "<manager id>",
    "user": "<user>"
  },
  "label": "Set manager",
  "type": "graph.setManager",
  "version": 1
}