Entra · Knowledgebase

KB - employeeLeaveDateTime show empty (null)

· 1 min read · Entra, Knowledgebase

This is a knowledge base item. I hope it will help you someday.

The issue#

When syncing the employeeLeaveDateTime attribute to Entra ID, the value shows null.

In this example, I use Graph Explorer to check the value.

Graph API
GET https://graph.microsoft.com/beta/users/0df62ab8-9f6d-48a2-bdd4-eaec18ce6466?select=employeeHireDate,employeeLeaveDateTime

Screenshot from the article

The solution#

As also mentioned here, the issue is a lack of permissions. This attribute is sensitive and requires the User-LifeCycleInfo.Read.All to read.

Screenshot from the article

After consent is given, the attribute becomes visible.

Screenshot from the article

Wrap up#

It seems obvious, but despite working with Entra every day, these kind of ‘issues’ keeps happening. That’s why I write it down, so I’ll find the answer when I Google it next time :) This one is extra stupid because I wrote the article several years back, but simply forgot.

Stay safe!

Comments

Comments load when you scroll here.