Sharepoint 2016 Search result issue - sharepoint

Sharepoint search results show files that user has with no permission
I am working on Sharepoint 2016. I have a requirement that when a user has no permission to a file, he/she can not see file and file path in search result
regards,
Baban Ali

I would check that your search crawl account has correct permissions on it. It should only have Full Read.
Here are some interesting blog posts and helpful articles to help you configure your search service:
https://learn.microsoft.com/en-us/sharepoint/search/create-and-configure-a-search-service-application
http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2010/10/19/how-to-properly-set-permissions-on-your-search-crawl-account-in-sharepoint-2010.aspx
Users who don't have access to the item should not see it in the search results - this is default behaviour. If they do, there is a configuration problem.
Hope this helps!

Related

Sharepoint Online - Read Only User - PnP Modern Search - Unable to get search results

PnP Modern Search Version 3.18
When new user gets created in Office 365 and placed into SharePoint Site's " Visitor" group with only the View Only or Read only access.
Search results in the PnP Modern Search results do not show up for that user. Users that have Edit functionality have no issues with the web parts.
Reindexing the site does nothing to fix this.
To Reproduce:
*Create user with no licence in Office 365 admin
*Add user into SharePoint " Visitor" with Read only permissions
*Go To site and search using the pnp modern search box
*Search results do not show up anything
*If user gets placed into editor permissions, search results show up.
Thank you!
I appreciate the help!
Unlicensed users will only have access to content that has been shared with them. The inner workings of the PnP Search probably require more permissions than unlicensed users have. It's not just that they may be able to access the documents, but they would also need at least Read access to the web parts and code bits that are used to present the results. An unlicensed user has no access to that.

Sharepoint online search search results show files that user has with no permission

I am working on Sharepoint Online. I have a requirement that when a user has no permission to a file, he/she still can see file in search result, but no permission to open the file.
I know there is security trimming in sharepoint search. But is it possible to achieve my requirement?
As Ondrej has said this isn't possible via the OOTB search functionality and this is by design.
If you wanted to be able to see all information returned by search you would need to write something custom and impersonate a user who does have access to the document.
Impersonation of User in office 365/SharePoint online
I'd only do the above in exceptional circumstances.
I would be questioning why you want someone to be able to see something they do not have access to read.
Cheers
Truez

Sharepoint 2013 Search from keyword file attribute

What I want to do
I have some files (jpg, doc) with keywords in theirs file attributes (visibles in the Windows Explorer, in the files properties). I want to be able to find them in a Sharepoint Search website from these keywords. Unfortunately, I don't find a way to set the crawl engine to index this file attribute.
What I've done for now
In the Sharepoint Search Administration I've created a source content from a files share. After a full crawl I can now find my files from their filename, title, author... through a Sharepoint Search website.
Any idea ?
thank you
I found this interesting post : http://social.technet.microsoft.com/Forums/sharepoint/en-US/feee374d-461e-4340-918a-c360116e3624/including-dockeywords-metadata-for-searching
This is exactly what I want to do but nobody seems to be able to make it work. Microsoft bug ?

sharepoint 2010 search not returning results

I have searched unsuccessfully for a number of days to try and resolve an issue with the search not returning results in Sharepoint 2010. Basically the search has successfully crawled the content and indexed the results but the search is returning no results on our site.
The codebase is the same as other servers that does return results so we are confident it's not a coding issue, but is a sharepoint issue. We can reach the search queryex webservice also
I was wondering if anyone had any suggestions on possible settings / things to check to try and kickstart this search!
This is my first question on stackoverflow, so please advise if I haven't added enough detail.
I'm fairly new to SO myself, but I'll help if I can! Quick couple of questions:
Is the search returning no results for all user types, including admin?
Is there an error returned when you submit a search or does it just say "no results"?
Are you using any custom web parts for displaying the search results, or is it OOB?
Do you have access to the ULS logs perchance? There may be further information there.
Are you using search scopes at all?
What domain account are you using for the search app pool? There's some info here about making sure you have the right type of identity - SharePoint 2010 search crawling but not displaying results
(Apologies for posting a comment-as-an-answer, but since my rep is below 50 I can't yet post comments on your question - still wanted to help though.)

Sharepoint 2010: people search is not working

I followed the directions in this *link and the while the "all sites" search is working, the "people" search is not working. Do I need to configure a content source (nothing seems to make sense: sharepoint sites, web sites, file shares, exchange public folders, line of business data, custom repository)? Under the search central admin > service application > View Scopes, the "people" section items column indicate 0 but the "all sites" items column indicate 243.
*link: http://sharepointgeorge.com/2010/configuring-enterprise-search-sharepoint-2010/
Is getting people search really this hard out of the box? I didn't configure the installation, maybe there is a piece missing?
Check your content source. The default content source typically includes all SharePoint sites and people. If you created your search app before your user profile app, then you may not have that in the content source. You should see an address starting with sps3://.
Make sure you have users to crawl in your profile db.
Try doing a full crawl on the source that contains people.
Make sure you user profile service import is running fine, check the MSDN doc: Configure profile synchronization (SharePoint Server 2010) for step to step guidance.

Resources