Restore user
BetaChanges data
Restores a deleted person to your Microsoft 365 directory, with mailbox and groups.
Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The Microsoft Graph connection the step signs in with. |
| User idRequired | The deleted user's object id — a deleted user has no sign-in address to use. |
| New sign-in address | Leave empty to keep the old one. Use it when someone else took it meanwhile. |
| Drop conflicting mail addresses | Removes the user's mail addresses that an active user now holds. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `microsoft-graph`) |
userId | text |
newUserPrincipalName | text |
autoReconcileProxyConflict | true/false, by default false |
Output
| Field | Type |
|---|---|
idUser id | string |
user | object |
user.displayName | string |
Sample output, and the expression for each field
- id"1"
- user
- displayName"Adele Vance"
- id"1"
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": {
"autoReconcileProxyConflict": false,
"connection": "<connection id>",
"newUserPrincipalName": "",
"userId": "<user id>"
},
"label": "Restore user",
"type": "graph.restoreUser",
"version": 1
}