web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / EmployeeHireDate Setup...
Power Automate
Suggested Answer

EmployeeHireDate Setup issue

(0) ShareShare
ReportReport
Posted on by 4
Hi experts,
 
i am creating user creation flow in Entra,ID is creating the successflly through Azure connector ,i want map EmployeeHireDate ,how can do it ,i try with update user ,not resolve .kindly share me the best apporach
 
 
 
Categories:
I have the same question (0)
  • Suggested answer
    chiaraalina Profile Picture
    2,498 Super User 2026 Season 2 on at
     
    The EmployeeHireDate attribute is a "special" Microsoft Entra ID property and is not exposed through the standard Create User or Update User actions in Power Automate. The most reliable approach is to update it using Microsoft Graph after the user is created.
     
    1. Create the user using the Microsoft Entra ID connector.
    2. Use HTTP with Microsoft Entra ID/or a custom Graph call to update the user.
    3. Send a PATCH request to:
      PATCH
      https://graph.microsoft.com/v1.0/users/{userId}
      {
      "employeeHireDate": "2026-08-01T00:00:00Z"
      }
  • MA-30071734-0 Profile Picture
    4 on at
    Hi,
     
    Thanks for the response i have the tried the same as you suggested but i getting the as Bad Request kindly help me on it and also add the screenshot of my flow.Thanks in advance
     
     
     
     
  • Suggested answer
    Ellis Karim Profile Picture
    12,236 Super User 2026 Season 2 on at
     
    It is possible to update employeeHireDate using the Entra ID Update User action, if you specify this as an Additional Property.
     
     
    For this to work you will need the appropriate Entra ID role (e.g. User Administrator role).
     
     
    However, I recommend that you avoid giving Entra ID admin roles (like User Administrator) to the account running your flow. This gives that account too much power.
     
    Instead, use an App Registration and the Microsoft Graph API as mentioned by @chiaraalina. You still need to be careful and make sure you only grant the App Registration the exact API permissions it needs and nothing more. But this approach is much safer from a security point of view (e.g. principle of least privilege, granular authorisation, and compliance etc).
     
    Ellis Karim
    Ellis Karim
    elliskarim.com  |  LinkedIn  |  Bluesky
    If this solved your issue, please mark it as ✅ Accepted Answer. If it helped, feel free to give it a 🩷 Like!
  • Suggested answer
    11manish Profile Picture
    3,849 Super User 2026 Season 2 on at
    The recommended solution is to create the user using the Microsoft Entra ID connector and then update employeeHireDate using the Microsoft Graph API with a PATCH /users/{id} request. This is Microsoft's preferred approach for attributes that are not exposed by the standard connector.
  • MA-30071734-0 Profile Picture
    4 on at
    Thanks for response , with additional prameter i can update hiredate,
     
     
    to Invoke entra http connector i am gettting the error.
     
     
    Permission i have allowed as application and delegated permissions to Graph API.
     
    • User.ReadWrite.All

    • Directory.ReadWrite.All

    • User-LifeCycleInfo.ReadWrite.All
     
    Still getting the error.
     
    {"error":{"code":"Authorization_RequestDenied","message":"Insufficient privileges to complete the operation.","innerError":{"date":"2026-08-02T14:21:20","request-id":"846b5990-ca5a-446e-8e7c-1f32eaf640ab","client-request-id":"846b5990-ca5a-446e-8e7c-1f32eaf640ab"}}}
     
     
     
    i also get to know how to get know which Enterperise application use this Permission ,please confirm the name of the application in the entra so then i check it.
     
     
    Thanks
     
  • Suggested answer
    chiaraalina Profile Picture
    2,498 Super User 2026 Season 2 on at
     
    This should work:
     
    1. Add Microsoft Graph Permissions (you already did that)
    2. Grant admin consent
     
     
    3. Create a Client Secret
     Go to Certificates & Secrets -> New client secret -> Copy Value
     
    In Power Automate
    4. Request an Access Token 
      Use HTTP Action 
      Method: POST
      Headers:
      Content-Type application/x-www-form-urlencoded
      URI: https://login.microsoftonline.com/{TenantId}/oauth2/v2.0/token
      Body:

      client_id={ClientId from App registration}&
      client_secret={SecretValue}&
      scope=https://graph.microsoft.com/.default&
      grant_type=client_credentials
     
    5. Update employeeHireDate
      Use HTTP Action 
      Method: POST
      Headers:
      Authorization Bearer
    body('HTTP_-_Token')['access_token']
      Content-Type application/json
      URI: https://graph.microsoft.com/v1.0/users/{userId}
      Body:
      {
    "employeeHireDate": "2026-08-01T00:00:00Z"
    }
     
     
     
     
    Let me know if it works!
     
  • Suggested answer
    Ellis Karim Profile Picture
    12,236 Super User 2026 Season 2 on at
     
    Seeing that you already have the role to create user accounts, then it makes sense to simply use the Entra ID Update User action:
     
     
    Ellis Karim
    Ellis Karim
    elliskarim.com  |  LinkedIn  |  Bluesky
    If this solved your issue, please mark it as ✅ Accepted Answer. If it helped, feel free to give it a 🩷 Like!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 306 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 169 Super User 2026 Season 2

#3
Haque Profile Picture

Haque 131 Super User 2026 Season 2

Last 30 days Overall leaderboard