I'm trying to call the "getpropertiesfor" Sharepoint Onlines REST endpoint.
https://msdn.microsoft.com/en-us/library/office/dn790354.aspx#bk_PeopleManagerGetPropertiesFor
I'm logged in and am just pasting the url into the browser. I am webencoding the string parameter @v. So my complete URL looks like this.
https://domain.sharepoint.com/_api/sp.userprofiles.peoplemanager/getpropertiesfor(@v)?@v=’i%3A0%23.f%7Cmembership%7Cuser.name%40domain.com’
Still I only get the error message.
The query string "accountName" is missing or invalid.
Any pointers on what's wrong? If I call an endpoint without parameters, like the "/sp.userprofiles.peoplemanager.gettrendingtags" endpoint it works and I get a correct response.
http://siteurl/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v)?@v='i:0%23.f|membership|user@domain.com'
Reference: sharepoint.stackexchange.com/a/148320/10271 – Mx. Dec 12 '16 at 16:50