Skip to content

Commit 5363fab

Browse files
authored
Merge pull request #25657 from microsoftgraph/FaithOmbongi-patch-2
Update tutorial-lifecycle-workflows-set-employeeleavedatetime.md
2 parents 86c48f6 + 12583b1 commit 5363fab

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

concepts/tutorial-lifecycle-workflows-set-employeeleavedatetime.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,16 @@ For delegated scenarios, the admin must also have the Global Administrator [Micr
3030
> [!NOTE]
3131
> This information is best updated via automation by using either an HR provisioning, Microsoft Entra Connect, or custom sync solution. For more information about this process, see [How to synchronize attributes for lifecycle workflows](/entra/id-governance/how-to-lifecycle-workflow-sync-attributes).
3232
33-
## Request
33+
## Set the employeeLeaveDateTime property
34+
35+
### Request
3436

3537
The following example configures September 30, 2022 at 23:59 as the date and time when the user will leave the organization.
3638

3739
# [HTTP](#tab/http)
3840

3941
```http
40-
PATCH https://graph.microsoft.com/v1.0/users/df744d9e-2148-4922-88a8-633896c1e929
42+
PATCH https://graph.microsoft.com/v1.0/users/aaaaaaaa-bbbb-cccc-1111-222222222222
4143
4244
{
4345
"employeeLeaveDateTime": "2022-09-30T23:59:59Z"
@@ -61,6 +63,18 @@ PATCH https://graph.microsoft.com/v1.0/users/df744d9e-2148-4922-88a8-633896c1e92
6163

6264
---
6365

66+
## Reset the employeeLeveDateTime property back to null
67+
68+
The request returns a `204 No Content` response code.
69+
70+
```http
71+
PATCH https://graph.microsoft.com/v1.0/users/aaaaaaaa-bbbb-cccc-1111-222222222222
72+
73+
{
74+
"employeeLeaveDateTime": null
75+
}
76+
```
77+
6478
## Related content
6579

6680
- [Lifecycle Workflows API overview](/graph/api/resources/identitygovernance-lifecycleworkflows-overview)

0 commit comments

Comments
 (0)