Restrict search functionality based on company record

Hi expert!

We have requirement from the customer, We need to apply restrict search functionality based on company record on (IM,SD). 

If anyone has implemented this feature, Kindly provide me the steps.

 

Tags:

  • If your system is a multi-tenant system, then you should try to use the mandanten feature. It's very powerful and it will do the job for you.

    Best regards,

     

  • Unforunately current system is not multi tenacy, I have implemented mandent function.

    After implementing still Company A is able to search all the ticket's.

  • Unforunately current system is not multi tenacy, I have implemented mandent function.

    After implementing still Company A is able to search all the ticket's.

  • You can use mandanten on both the incidents and probsummary tables, but you could also just populate the append query field in the user incident and service desk profiles. 

    The append query is added to any search executed by the user. OOB the field is present on the SD profile form and not on the Incident profile form (go figure) but if you add the field to the incident profile, it works (the search code already looks for the append.query value when a search is executed). 

    So a profile for a Company A operator could include the append query of company="A"

  • You can use mandanten on both the incidents and probsummary tables, but you could also just populate the append query field in the user incident and service desk profiles. 

    The append query is added to any search executed by the user. OOB the field is present on the SD profile form and not on the Incident profile form (go figure) but if you add the field to the incident profile, it works (the search code already looks for the append.query value when a search is executed). 

    So a profile for a Company A operator could include the append query of company="A"