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 / Can't connect to SPO c...
Power Automate
Answered

Can't connect to SPO custom user profile property via HTTP Request

(0) ShareShare
ReportReport
Posted on by 6

I'm trying to connect to the SPO user profile properties to retrieve a custom property via the "Send an HTTP request to SharePoint" connector.

The request is:

/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v)?%40v='{Employee Claims}'
where the dynamic content "Employee Claims" displays i:0#.f|membership|user@domain.com to populate the accountName,
however the flow continues to fail with the error, "The query string "accountName" is missing or invalid."
I've tried '@', '%40' and still no luck. What am I doing wrong?
 
If there is another way to successfully get the SPO user custom profile properties (not Office 365), your help is greatly appreciated.
I need this information for the conversion of multiple SPD workflows to Power Automate.
Categories:
I have the same question (0)
  • Verified answer
    v-litu-msft Profile Picture
    Microsoft Employee on at

    Hi @spela3,

     

    You can try this uri:

    /_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v)?@v='i:0%23.f|membership|xx@siteurl.onmicrosoft.com'

     

    Screenshot 2020-09-16 163940.jpg

    Run result:Screenshot 2020-09-16 163905.jpg

     

    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.

     

  • spela3 Profile Picture
    6 on at

    Thank you @v-litu-msft!

    I escaped the '#' and the '@' and used "Employee Email" instead of "Employee Claims" and it ran successfully! 

    However, I'm getting a null output.  Any ideas as to why?

     

    spela3_1-1600263195074.png

    spela3_2-1600264715214.png

     

     

  • spela3 Profile Picture
    6 on at

    Ok, I was able to get an output of the properties with this formatted request.  Everything works now. 🙂

    spela3_0-1600281135872.png

    I also had to escape the ':' and '|' so that the format was "@v='i%3A0%23.f%7Cmembership%7C<accountName>".

    I don't know if the headers were necessary, but I threw them in just in case.

  • v-litu-msft Profile Picture
    Microsoft Employee on at

    Hi @spela3,

     

    There is no need to add the headers.

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

    Best Regards,
    Community Support Team _ Lin Tu

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 167

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard