You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/active-directory/governance/set-employee-leave-date-time.md
+32-16Lines changed: 32 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
-
title: Set employeeLeaveDateTime for leaver workflows
3
-
description: Explains how to manually set employeeLeaveDateTime for leaver workflows using PowerShell.
2
+
title: Set employeeLeaveDateTime
3
+
description: Explains how to manually set employeeLeaveDateTime.
4
4
author: owinfreyATL
5
5
ms.author: owinfrey
6
6
ms.service: active-directory
@@ -9,34 +9,50 @@ ms.date: 09/07/2022
9
9
ms.custom: template-how-to
10
10
---
11
11
12
+
# Set employeeLeaveDateTime
13
+
## Required permission and roles
14
+
### Delegated
15
+
In delegated scenarios the signed-in user needs the Global Administrator role to update the employeeLeaveDateTime attribute. In addition one of the following delegated permissions is required:
16
+
- User-LifeCycleInfo.ReadWrite.All
17
+
- Directory.AccessAsUser.All
12
18
19
+
### Application
20
+
Updating the employeeLeaveDateTime requires the User-LifeCycleInfo.ReadWrite.All application permission.
13
21
14
-
# Set employeeLeaveDateTime for leaver workflows
15
-
16
-
When creating leaver workflows, it's required to set the date and time for when a user leaves. This parameter, employeeLeaveDateTime, is used to trigger the leaver workflow to run. Unlike other parameters, which can be synchronized using HR inbound Provisioning, Azure AD Connect sync, or Azure AD Connect Cloud sync, you must currently manually set the employeeLeaveDateTime for each user you want to process a leaver workflow for.
22
+
>[!NOTE]
23
+
> The User-LifeCycleInfo.ReadWrite.All permissions is currently hidden and cannot be configured in Graph Explorer or the API permssion blade of app registrations.
17
24
25
+
# Set employeeLeaveDateTime via PowerShell
18
26
To set the employeeLeaveDateTime for a user using PowerShell enter the following information:
0 commit comments