FlowmageDocs

Get manager

BetaReads data

Reads 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 fieldsComma-separated property names of the manager.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `microsoft-graph`)
usertext
selecttext, by default "id,displayName,mail,userPrincipalName,jobTitle"

Output

FieldType
hasManagerHas a managerboolean
managerobject
manager.idstring
manager.displayNameManager namestring
Sample output, and the expression for each field
  • hasManagertrue
  • manager
    • displayName"Alex Wilber"
    • id"2"

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>",
    "select": "id,displayName,mail,userPrincipalName,jobTitle",
    "user": "<user>"
  },
  "label": "Get manager",
  "type": "graph.getManager",
  "version": 1
}