question

MatthewLamb-4978 avatar image
0 Votes"
MatthewLamb-4978 asked MatthewLamb-4978 commented

Users excluded from address list are still appearing in SharePoint Online modern People Search but not Delve

I have set a user account to be excluded from address lists using the on-prem AD attribute msexchHideFromAddressLists, also setting the mailnickname attribute to ensure things get replicated correctly. This is working and I can see that the SharePoint user profile has got SPS-HideFromAddressLists set to true.

This user does now not appear in Delve when searching by the username, which is great.

However, the user does still appear when searching in the SharePoint modern search, under the People tab (/_layouts/15/sharepoint.aspx). My understanding is that this should respect the SPS-HideFromAddressLists property the same way Delve does. There's no way to customise the query as far as I can see.

Is there some additional caching that happens, something else that I need to set, or should the People search be returning the same result as Delve?

office-sharepoint-online
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@MatthewLamb-4978

I am currently looking into this issue and will give you an update as soon as possible.

Thank you for your understanding and support.

0 Votes 0 ·

Hi Julie,

Thanks for your answer but this is for the Classic search experience, which I don't need to change.

According to the article you linked (in the comments added by the article's author):

"This is done automatically in the Modern search experience. All of the following are excluded people properties in the modern people search : {?{searchTerms} (-"sps-usertype":1 AND -"sps-hidefromaddresslists":1 AND -"sps-recipienttypedetails"=4 AND -"sps-recipienttypedetails"=16 AND -"sps-recipienttypedetails"=32 AND -"sps-recipienttypedetails"=8589934592 AND -"sps-recipienttypedetails"=17179869184 AND -"sps-recipienttypedetails"=34359738368 AND -"sps-recipienttypedetails"=2199023255552) ContentClass=urn:content-class:SPSPeople}"

So I would like to know whether this is really the case, as I am not seeing the excluded users being automatically excluded from the Modern search experience.

0 Votes 0 ·
JoyZ avatar image JoyZ MatthewLamb-4978 ·

@MatthewLamb-4978

Thanks for the update, as this question requires Exchange related attributes in AD, I'm deploying it, I'll update this post if I make any progress.

1 Vote 1 ·

1 Answer

JoyZ avatar image
0 Votes"
JoyZ answered MatthewLamb-4978 commented

@MatthewLamb-4978

From this article, SharePoint Online People search results means the classic people search result page with the suffix "peopleresults.aspx", not the modern people search page.
172030-image.png
If you have an Enterprise Search Center, this is the search results page for the People search vertical.

172103-image.png

Edit the classic people search result page and Change Query Text from {searchboxquery} to {searchboxquery} -"SPS-HideFromAddressLists":1 to compare the result.

172085-image.png

-----------------------------------------------Update Answer-----------------------------------------------

Per my test,if the msExchHideFromAddressLists property has been set to True, then sync to azure ad, we will not able to find this user again in modern search and delve:
173300-image.png

173299-image.png

173345-image.png


If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.





image.png (23.3 KiB)
image.png (63.0 KiB)
image.png (10.9 KiB)
image.png (7.3 KiB)
image.png (15.5 KiB)
image.png (28.6 KiB)
· 7
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@MatthewLamb-4978

Please check the updated answer.

0 Votes 0 ·

@MatthewLamb-4978

I’m checking how the things are going on about this issue.

Please feel free to reply if there is any update.

0 Votes 0 ·

@MatthewLamb-4978

Is there any progress on this issue?

Please feel free to reply.

0 Votes 0 ·

Hi Julie,
Thanks for following up. In my environment, with the msexchHideFromAddressLists attribute set to true, the user is not returned in Delve, but is still returned in the SharePoint modern people search. So I'm afraid that simply setting this attribute is not working correctly in my environment.

0 Votes 0 ·
JoyZ avatar image JoyZ MatthewLamb-4978 ·

@MatthewLamb-4978

Please check if other users have the same issue with the msexchHideFromAddressLists property set to true?

You could also create a test user in on-premise AD, set the related property, sync it to azure ad to compare the result.

0 Votes 0 ·
Show more comments