Show more user profile properties in People Picker

Hi, I am trying to modify the template of people picker to show more user properties. However, only data.EntityData.Title, data.EntityData.Department, and data.EntityData.Email work. Other property like EmployeeID and EmployeeType do not work even although they are user profile properties.

Is there a way to add use them in the template? Thanks!

Dear @zymwh,
Only some information is loaded with the user, not all properties:

That's because we use the below endpoint for searching users:


It returns data from site users, not user profiles and thus the set of available properties is limited.

You can still retrieve other properties, just not in the template - Retrieve user profile information — SharePoint forms

Hi Nikita, thanks for your reply!