Share via

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 Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Microsoft Graph
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 46,431 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.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.