sp-dev-fx-webparts
sp-dev-fx-webparts copied to clipboard
react-directory - Hide hidden users
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?
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
Hi @johnsoep
This WebPart uses SharePoint Search in the File spservice.ts
the method searchUsersNew
is 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
Thanks for the response Peter! I'll take that back to my team and will see what we can do!