Skip to main content
Tweeted twitter.com/StackSharePoint/status/674330416782905349
added 409 characters in body
Source Link
Anders
  • 969
  • 3
  • 16
  • 32

I'm trying to retrieve user people with rest api. But it does not work.

var getSpecificUserProperty = "/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v)?@v='i@v='"+encodeURIComponent('i:0#.f|membership|firstname.aftername@domainaftername@sitename.se'sharepoint.com')+"'";


 $.ajax({
  url: siteUrl + getSpecificUserProperty,
  type: "GET",
  headers: { "accept": "application/json;odata=verbose" },
  success: function(data, status){
    console.log(data.d.results);
 
 },
  error: function(err){
    console.log(err);
  }
});

Why doesn't this code work? What am i doing wrong?

I'm trying to retrieve user people with rest api. But it does not work.

/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v)?@v='i:0#.f|membership|firstname.aftername@domain.se'

Why doesn't this code work? What am i doing wrong?

I'm trying to retrieve user people with rest api. But it does not work.

var getSpecificUserProperty = "/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v)?@v='"+encodeURIComponent('i:0#.f|membership|firstname.aftername@sitename.sharepoint.com')+"'";


 $.ajax({
  url: siteUrl + getSpecificUserProperty,
  type: "GET",
  headers: { "accept": "application/json;odata=verbose" },
  success: function(data, status){
    console.log(data.d.results);
 
 },
  error: function(err){
    console.log(err);
  }
});

Why doesn't this code work? What am i doing wrong?

Source Link
Anders
  • 969
  • 3
  • 16
  • 32

Retrieve userprofiles by REST API

I'm trying to retrieve user people with rest api. But it does not work.

/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v)?@v='i:0#.f|membership|[email protected]'

Why doesn't this code work? What am i doing wrong?