Populate Sharepoint Online People Picker from Active Directory

AlHal2
AlHal2 used Ask the Experts™
on
I've incorporated the people picker from this site into a Sharepoint online webpart.  It's not showing any people.
How do I populate from the Active Directory?
https://social.technet.microsoft.com/wiki/contents/articles/52920.spfx-solution-use-pnp-people-picker-control.aspx
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
I got this answer on Stack Overflow

Use native JavaScript in SPFx solution would be more complex than classic page and no compile error/tip.

I would suggest you use @pnp/spfx-controls-react People Picker in your solution.

https://social.technet.microsoft.com/wiki/contents/articles/52920.spfx-solution-use-pnp-people-picker-control.aspx

I couldn't get the above to populate the PeoplePicker with names from the ActiveDirectory, so the person sent me this link which worked.
https://stackoverflow.com/questions/57559665/how-to-set-a-sharepoint-list-field-using-a-pnp-sp-people-picker

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial