We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1bdaf1c + dbcd092 commit d928a53Copy full SHA for d928a53
src/common/utilities/SPHelper.ts
@@ -352,7 +352,7 @@ export class SPHelper {
352
url = context.pageContext.web.absoluteUrl;
353
url = GeneralHelper.trimSlash(url);
354
355
- url += `/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor('${encodeURIComponent(loginName)}')`;
+ url += "/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v)?@v='" + encodeURIComponent(loginName) + "'";
356
return context.spHttpClient.get(url, SPHttpClient.configurations.v1)
357
.then((response): Promise<any> => {
358
return response.json();
0 commit comments