What you are trying to do is some level of security trimming. This should be defined in the source : in ServiceNow, there should be different groups (Internal, Vendors) and the permission to view the article be given based on the group membership.
You cannot configure a rule in the search backend to do this. Litteraly, you would need to send a different query based on a group membership detected in SharePoint. This is not possible today.
Microsoft Search
I am using SharePoint online where if I am search for some items from the service now in the Microsoft Search custom vertical. I am trying to restrict the article based on the user. If a user is contract employee he will not see the items and if he is permanent user he will see the items from service now. Is there any way to achieve this feature?
Tried the KQL querying it is not helping me ,
Any help really appreciated.
2 answers
Sort by: Most helpful
-
Nicolas Moreau 1 Reputation point
2020-10-10T00:54:01.5+00:00 -
Echo Du_MSFT 17,176 Reputation points
2020-10-12T09:50:45.257+00:00 @ vasanthkumar-2816
There are two suggestions:
1.You could create two groups based on users identity (contract user and permanent user). And then grant permissions to view the files/items based on the group membership.
2.Restricting Office 365 Content Searches with Permission Filters.
For better understanding Permission Filters for SharePoint, please refer to: https://petri.com/restricting-office-365-content-searches.
“A permission filter creates a restrictive view of mailboxes or SharePoint and OneDrive sites within a tenant. When users that conduct searches come within the scope of a permission filter, they cannot see any data returned by searches except that given by the restrictive view.”You could refer to this article Creating and Managing Security and Compliance Filters in the Real World.
Thanks,
Echo Du============
If an Answer is helpful, please click "Accept Answer" and upvote it.
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.