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

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
14,709 questions
Microsoft Graph Users API
Microsoft Graph Users API
A Microsoft API that allows you to build compelling app experiences based on users, their relationships with other users and groups, and the resources they access for example their mails, calendars, files, administrative roles, group memberships.
726 questions
{count} votes

1 answer

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