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

react-directory - Hide hidden users

Open johnsoep opened this issue 11 months ago • 1 comments

Disclaimer

Yes

Sample

react-directory

Contributor(s)

@joaojmendes @petkir @sudharsank @Abderahman88

Question

I have a quick question (hopefully). I love this webpart and I want to utilize it for my organization. I work for a State Higher Education University and I'm running into a small problem before I can deploy this. We have a group of users who apply for confidential status in our organization. This status is for those who may be in a violent situation and don't want their information to be displayed in directories or other accessible locations. In essence if someone asks us for their information they don't exist to us.

To accomplish this we hide these users from the Global Address Book but I've noticed that when I test this webpart in my dev environment that it shows users and accounts that are hidden from the Global Address Book. Is there a way that I can modify the search function to only look at accounts that are not hidden?

johnsoep avatar Feb 27 '24 18:02 johnsoep

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

ghost avatar Feb 27 '24 18:02 ghost

Hi @johnsoep

This WebPart uses SharePoint Search in the File spservice.ts the method searchUsersNewis in use.

You have to find a Property to filter the users on your requirements, as far as I know, the property "hide from Global Address Book" does not exist in the search.

greets

Peter

petkir avatar Mar 01 '24 08:03 petkir

Thanks for the response Peter! I'll take that back to my team and will see what we can do!

johnsoep avatar Mar 04 '24 19:03 johnsoep