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 / SharePoint REST API Ca...
Power Automate
Unanswered

SharePoint REST API Call with Power Automate - Get user profile

(0) ShareShare
ReportReport
Posted on by 133

I’m very new (like this is my first time) trying to do this and could use a little help in working out the process. I’ve reviewed, literally, dozens of websites and I can’t seem to find one that has helped.  Pretty sure it’s me!

 

I would like to use Power Automate to pull the following fields, employeeid and employeeOrgData

, from the SharePoint User Profile using the respondent’s email from a MSFT FORM.  I’m currently pulling other data from AAD using the O365 Get User & Manager connector, so I can use fields from that if needed to pull the right data from the SharePoint User Profile.  Once the data is received I will need to populate fields in a SPO list.

 

I’m positive this has been done before, can anyone help me with how to do this?   

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @DarenD 

     

    To get all properties of the current user you could use the below REST API

     

    _api/SP.UserProfiles.PeopleManager/GetMyProperties

     

    image.png

  • DarenD Profile Picture
    133 on at

    abm,

      that did seem to work in connecting me to the SPOL User Service.  Does it work the same way if trying to get data from Graph?  I'm trying to specifically get the employeeid and employeeOrgData.  None of those are returned when I ran my HTTP Request.

     

    Resource Link: https://docs.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-1.0#properties 

     

    Connector Configuration:

    Graph_API_Employee_Details.png

  • DarenD Profile Picture
    133 on at

    abm,

      Just to add some clarification I also did a the sample test in the link I provided and this is what I received back:

     

    Error: But I'm actually in the tenantError: But I'm actually in the tenantThis is the code I usedThis is the code I used

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @DarenD

     

    Thanks for the reply. Is this a sync issue?

     

    About user profile synchronization - SharePoint in Microsoft 365 | Microsoft Docs

     

    Thanks

  • DarenD Profile Picture
    133 on at

    I don't think so since the tenant I'm using is cloud only no On-Premise activities. 

  • DarenD Profile Picture
    133 on at

    I've also expanded the HTTPS so you can see the rest of the information:

     

    Graph_API_Employee2_Details_Updated.png

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @DarenD 

     

    Whats the HTTPS JSON data looks like? Is that contains the schema names you after?

     

    Thanks

  • DarenD Profile Picture
    133 on at

    Here's the JSON from All Users Code & Specific User using UPN

     

    Graph_API_Employee3_Error_Details.pngGraph_API_All_Employee3_Error_Details.png

  • Verified answer
    abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @DarenD 

     

    Try Get user profile (V2)

     

    image.png

     

    Then add a compose action step and try the below expression to get the employeeid

     

    outputs('Get_user_profile_(V2)')?['body']?['employeeId']
     
    Thanks
  • Ianhall1892 Profile Picture
    168 on at

    Hi were you ablee to get employeeOrgData without premium connectors?

     

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 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard