Hiredate is always a default date using Microsoft Graph API

Bhuvaneshwari Balasubramaniam 46 Reputation points
2022-06-16T11:16:12.927+00:00

Hi Team,

I am trying to fetch my hiredate/joiningdate using https://graph.microsoft.com/v1.0/me?$select=hireDate and https://graph.microsoft.com/v1.0/me?$select=employeeHireDate.

But both of the endpoints are not fetching any values. PFB, the screenshots.

212064-image.png

212087-image.png

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,302 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,047 questions
0 comments No comments
{count} vote

Accepted answer
  1. Bhanu Kiran 3,611 Reputation points
    2022-06-16T15:51:13.73+00:00

    Hi @Bhuvaneshwari Balasubramaniam ,

    You need to check whether hiredate is filled in User Profile properties of SPO Admin center. Please do so by navigating through More Features> User Profiles > Manage User Profile.

    Also note that hireDate property is specific to SharePoint Online:
    212030-image.png

    For EmployeeHireDate: We can store the employee data like birthday and employeehiredate in azure AD through couple of ways.

    One way is to use azure ad connect (if you have on premise active directory) and the other way is using schema extensions. You need to use Microsoft Graph API to work with azure ad schema extension, there is no direct option to extend the schema from azure portal.

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

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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