missing employeeLeaveDateTime attribute

Khrapunov, Ivan 0 Reputation points
2023-05-08T16:54:24.5666667+00:00

we connected an Azure Premium P2 subscription to test the work of the employeeLeaveDateTime attribute, but it didn't appear in the user's attributes

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,138 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,211 questions
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 39,101 Reputation points
    2023-05-09T06:52:38.2533333+00:00

    Hi @Khrapunov, Ivan

    Make sure your context meets the following conditions, otherwise the property will return null.

    To read this property, the calling app must be assigned the User-LifeCycleInfo.Read.All permission. To write this property, the calling app must be assigned the User.Read.All and User-LifeCycleInfo.ReadWrite.All permissions. To read this property in delegated scenarios, the admin needs one of the following Azure AD roles: Lifecycle Workflows Administrator, Global Reader, or Global Administrator. To write this property in delegated scenarios, the admin needs the Global Administrator role.

    Call test:

    User's image

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.