SOLVED

PNP People Picker no users returned

Copper Contributor

I have an PNP people Picker in a spfx web part, but It doesn't find any users

 

I get error 400 (Failed to load resource) on /_api/SP.UI.ApplicationPages.ClientPeoplePickerWebServiceInterface.clientPeoplePickerSearchUser 

 

 

My control

  <PeoplePicker
    context={props.context}
    titleText="People Picker"
    personSelectionLimit={3}
    //groupName={"Team Site Owners"} // Leave this blank in case you want to filter from all users
    showtooltip={true}
    required={true}
    disabled={false}
    onChange={_getPeoplePickerItems}
    showHiddenInUI={false}
    principalTypes={[PrincipalType.User]}
    resolveDelay={1000} />
     

 

3 Replies
best response confirmed by kboecher (Copper Contributor)
Solution
I had the same issue with version 3.10.0. A downgrade to version 3.9.0 helped

npm install @pnp/spfx-controls-react@3.9.0
Yes, it works, thanx :) - do you know why?
I think the problem was that the a "GET" request to a SharePoint API was fired, but it had to be a "POST" request, but i not sure
1 best response

Accepted Solutions
best response confirmed by kboecher (Copper Contributor)
Solution
I had the same issue with version 3.10.0. A downgrade to version 3.9.0 helped

npm install @pnp/spfx-controls-react@3.9.0

View solution in original post