sp-dev-fx-webparts icon indicating copy to clipboard operation
sp-dev-fx-webparts copied to clipboard

Filter users based on AD attribute

Open PikeSal opened this issue 1 year ago • 2 comments

Disclaimer

Yes

Sample

https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-directory

Contributor(s)

@joaomendes

Question

We have an AD attribute JobTitle to exclude users from appearing in search results, how do i use this attribute to exclude users that shouldn't appear in React People directory webpart results.

PikeSal avatar Jan 26 '24 16:01 PikeSal

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

ghost avatar Jan 26 '24 16:01 ghost

You can't using the "React Directory" as -is condition.

You can, if you go with PnP Modern Search

1st: By design, it's using SharePoint User Profile services and properties and not all properties are synced straight from AD properties. 2nd: It's limited to the following specific properties in SharePoint User profile service : It's inclusive and not exclusive!

``["FirstName", "LastName", "PreferredName", "WorkEmail", "OfficeNumber", "PictureURL", "WorkPhone", "MobilePhone", "JobTitle", "Department", "Skills", "PastProjects", "BaseOfficeLocation", "SPS-UserType", "GroupId"];`

gretchunkim avatar Jan 27 '24 02:01 gretchunkim