Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Making a cross domain SP.UserProfiles.PeopleManager REST call

$
0
0

Hey,

I'm trying to use the new REST API to get a user's properties from his user profile.

When i try to just write the url in my browser (http://<site name>/_api/SP.UserProfiles.PeopleManager/GetMyProperties) it works fine, when i try to do the same from a SharePoint hosted app, it fails with cross domain call.

I tried to use the RequestExecutor for the call, but when i try the follow url it fails:

var upUrl = appweburl + "/_api/SP.AppContextSite(@t)/SP.UserProfiles.PeopleManager/GetMyProperties?@t='" + hostweburl + "'";

The error i get is "not found".

Any idea what am i doing wrong?


Best regards, Johnny Tordgeman.
My Blog


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>