Forum Discussion

kboecher's avatar
kboecher
Copper Contributor
Sep 28, 2022

PNP People Picker no users returned

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} />
     

 

  • 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
  • SvenSieverding's avatar
    SvenSieverding
    Bronze Contributor
    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
    • kboecher's avatar
      kboecher
      Copper Contributor
      Yes, it works, thanx 🙂 - do you know why?
      • SvenSieverding's avatar
        SvenSieverding
        Bronze Contributor
        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

Resources