Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter users based on AD attribute #4683

Closed
PikeSal opened this issue Jan 26, 2024 · 2 comments
Closed

Filter users based on AD attribute #4683

PikeSal opened this issue Jan 26, 2024 · 2 comments

Comments

@PikeSal
Copy link

PikeSal commented Jan 26, 2024

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.

@ghost
Copy link

ghost commented Jan 26, 2024

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

@ghost ghost added the Needs: Triage 🔍 label Jan 26, 2024
@gretchunkim
Copy link
Contributor

gretchunkim commented Jan 27, 2024

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"];`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants