How to update hire and birth date using MS Graph API

Ajit Shanbhag 0 Reputation points
2024-08-15T21:03:23.8866667+00:00

I am using MS Graph API to update the hire and birth date. Below are the details:

PATCH API - https://graph.microsoft.us/v1.0/users/{user-identifier}

Payload for hire and birthday -

{
    "hireDate": "2024-07-01T00:00:00Z",
    "birthday": "1982-09-22T00:00:00Z"
}

API Permission in the app registered in Azure portal -

User's image

The update has been working fine since it was developed 4 months ago. Starting Aug 8, 2024, the API is failing to update the hire and birth dates. Kindly assist in providing the solution.

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-08-16T03:02:43.77+00:00

    Hi @Ajit Shanbhag

    Tested in Graph Explorer and Postman, it runs well and can successfully change the values of hireDate and birthday, the test results are as follows:

    Screenshot 2024-08-16 105715

    Screenshot 2024-08-16 025822

    You can refer to my test results to check, if there is no result, please share your error information, we will further study.

    Reference documents are as follows:

    https://learn.microsoft.com/en-us/graph/api/user-update?view=graph-rest-1.0&tabs=http

    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 Answers by the question author, which helps users to know the answer solved the author's problem.