Skip to content

Commit cd9d8d2

Browse files
fixes pnp#1292 where people picker returns no results
1 parent 385dbc0 commit cd9d8d2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@
1010
"`PeoplePicker`: Use webAbsoluteUrl if provided through props to ensure user [#1273](https://github.com/pnp/sp-dev-fx-controls-react/issues/1273)"
1111
],
1212
"fixes": [
13+
"`PeoplePicker`: fixes where people picker returns no results [#1292](https://github.com/pnp/sp-dev-fx-controls-react/issues/1292)",
1314
"`FilePicker`: Tile view fix [#1272](https://github.com/pnp/sp-dev-fx-controls-react/issues/1272)"
1415
]
1516
},
1617
"contributions": [
18+
"[Chad Eiserloh](https://github.com/c-eiser13)",
1719
"[Hilton Giesenow](https://github.com/HiltonGiesenow)",
1820
"[Jake Stanger](https://github.com/JakeStanger)",
1921
"[Victor Romanov](https://github.com/VRomanovTau)"

src/services/PeopleSearchService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ export default class SPPeopleSearchService {
110110
try {
111111
// If the running env is SharePoint, loads from the peoplepicker web service
112112
const userRequestUrl: string = `${siteUrl || this.context.pageContext.web.absoluteUrl}/_api/SP.UI.ApplicationPages.ClientPeoplePickerWebServiceInterface.clientPeoplePickerSearchUser`;
113-
const searchBody = {
113+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
114+
const searchBody: any = {
114115
queryParams: {
115116
AllowEmailAddresses: true,
116117
AllowMultipleEntities: false,
@@ -119,7 +120,6 @@ export default class SPPeopleSearchService {
119120
PrincipalSource: 15,
120121
PrincipalType: this.getSumOfPrincipalTypes(principalTypes),
121122
QueryString: query,
122-
SharePointGroupID: null
123123
}
124124
};
125125

0 commit comments

Comments
 (0)