Skip to content

Commit dbcd092

Browse files
author
Jurikovič Matej
committed
call #468
1 parent 5cf8856 commit dbcd092

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/utilities/SPHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ export class SPHelper {
352352
url = context.pageContext.web.absoluteUrl;
353353
url = GeneralHelper.trimSlash(url);
354354

355-
url += `/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor('${encodeURIComponent(loginName)}')`;
355+
url += "/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v)?@v='" + encodeURIComponent(loginName) + "'";
356356
return context.spHttpClient.get(url, SPHttpClient.configurations.v1)
357357
.then((response): Promise<any> => {
358358
return response.json();

0 commit comments

Comments
 (0)