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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to retrieve 'emplo...
Power Automate
Answered

How to retrieve 'employeeId' attribute from MS flow?

(0) ShareShare
ReportReport
Posted on by

Dear Flow Gurus,

 

I am trying to pull out employeeId field but as shown below, there is no "Employee Id" field available.

Capture.PNG

 

According to the documentation, here and here, it seems like 'employeeId' should be able to pickup from "Office 365 Users" service.

 

I have no luck and stuck on it for few days. Hopefully can get some input from the advanced users here.

 

Thank you.

Categories:
I have the same question (2)
  • Verified answer
    v-litu-msft Profile Picture
    on at

    Hi @Anonymous,

     

    Please refer to this post and this Idea:

    Get Employee ID from AD

    https://powerusers.microsoft.com/t5/General-Flow-Discussion/How-to-get-Employee-ID-from-AD/m-p/373437 

    Idea - Access Azure AD Custom Extension Attributes in MS Flow

    https://powerusers.microsoft.com/t5/PowerApps-Ideas/Access-Azure-AD-Custom-Extension-Attributes-in-MS-Flow/idi-p/107087 

     

    Hope something help.

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Community Power Platform Member Profile Picture
    on at

    I think i have to accept this as solution but i can never apply it.

    https://powerusers.microsoft.com/t5/PowerApps-Ideas/Access-Azure-AD-Custom-Extension-Attributes-in-MS-Flow/idc-p/187791#M7268

     

    Invoke HTTP request is a premium tier and i can't call it in my production environment. 😞

    So it's a dead end for me.

  • blink Profile Picture
    14 on at

    I was looking for the same thing as you were and also got stopped by HTTP being a premium feature. I have a working alternative solution using the built in graph feature of get user profile. Hopefully this helps future users searching for this issue.

     

    In my case I'm going to update an new SharePoint list item on creation to add the employee number as a separate column. here is the basic flow:

    blink_1-1643297937252.png

     

    Initialize variable can be replaced with anything else as after parse JSON we will have the employee id

    blink_2-1643298017505.png

     

    Get User Profile (V2) -> Show advanced options and put "employeeid" in select fields.  "employeeid" is the field name for the azure employee id.

    blink_0-1643297509690.png

     

    Parse JSON -> In content use dynamic content "User from Graph API".  "User from Graph API" was generated in the last step by adding "employeeID" in the advanced options "Select Field".

    blink_3-1643298097249.png

    Add the following to "Schema" to turn our Graph API into dynamic content.

    {
        "type""object",
        "properties": {
            "ODdata": {
                "type""string"
            },
            "EmployeeID": {
                "type""string"
            }
        }
    }
     
    You will now have "EmployeeID" as dynamic Content and you can use where needed.
    blink_4-1643298485228.png

     

     

     

     

     

     

     

     

  • grandtotal Profile Picture
    31 on at

    Nice solution, thanks!

  • esjimenezp Profile Picture
    485 on at

    Works, thanks @blink 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard