How to see and edit EmployeeLeaveDate attribute of user in azureAD

Divya K Nair 20 Reputation points
2023-07-17T15:03:53.6066667+00:00

To create a workflow in azureAD for offboarding an employee need the EmployeeLeaveDate.Is there any way to find EmployeeLeaveDate.I am looking this for only azuread not a hybrid one

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,010 questions
Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,578 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
18,714 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Daniel Krzyczkowski 371 Reputation points MVP
    2023-07-18T05:10:47.03+00:00

    @Divya K Nair

    I assume you are trying to implement "leaver" workflow. In this case, you have to set employeeLeaveDateTime property using Microsoft Graph (or PowerShell) as described here:
    https://learn.microsoft.com/en-us/graph/tutorial-lifecycle-workflows-set-employeeleavedatetime?tabs=http

    Then you can use employeeLeaveDateTime attribute in the trigger configuration:
    https://learn.microsoft.com/en-us/graph/api/resources/identitygovernance-lifecycleworkflows-overview?view=graph-rest-1.0#execution-conditions

    Please let me know if this helps.