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

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
    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
    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

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard