Page tree

Introduction

We created in Sinequa a white list in the File Mappings section.

A File mappings is a csv file that can be used during indexation to fill additional meta-properties (source fields in the index).

We also use some mapping files during the users imports to store information used during search for filtering.


Files EHSADMIN

Use to restrict access to the specific search interfaces for administrators.

The search interface xECM_FP_PRODUCTION_ALL_SINEQUA_ADMIN https://ehs-all-search.syensqo.com) is used only by IT admin and EHS admin to see Released and Historical docs.

Sample for EHSADMIN

EHSADMIN;vincent.desthieux@syensqo.com
EHSADMIN;aline.martinet@syensqo.com
EHSADMIN;luc.ruault@syensqo.com
EHSADMIN;nicolas.thomas@syensqo.com
EHSADMIN;christopher.riley@syensqo.com
EHSADMIN;justin.bender@syensqo.com
EHSADMIN;paul.paetzke@syensqo.com
EHSADMIN;laetitia.jezequel@syensqo.com
EHSADMIN;anacristina.ribeiro@syensqo.com
EHSADMIN;barbara.souza@syensqo.com
EHSADMIN;joyalsingh.johnsonjayasingh@syensqo.com
EHSADMIN;panagiotis.melekos-ext@syensqo.com
EHSADMIN;martina.gatti@syensqo.com
EHSADMIN;valeria.carvalho@syensqo.com
EHSADMIN;shivaleela.bolligorla1-ext@syensqo.com
EHSADMIN;atmanand.melagiri1-ext@syensqo.com
EHSADMIN;sujay.s-ext@syensqo.com



Filling

The file is used during the users import job from the Active Directory.

Use

For the profile xECM_FP_PRODUCTION_ALL_SINEQUA_ADMIN (https://ehs-all-search.syensqo.com/ in the search.cs plugin we added this code:



                if ( Str.Contains(Session.Profile.Name, "_ALL")   ) {
                    if ( Session.User.Param7 == "EHSADMIN" ) {
                        // is AHSADMIN
                    }
                    else {
                        sql = Str.Replace(sql, "where", "where 98=99 and ");
                    }
                   
                    Sys.Log("CAMEROUN _ALL : sql  " + sql);
                   
                }



If param7 is equal to EHSADMIN the user can see all the documents in the search interface xECM_FP_PRODUCTION_ALL_SINEQUA_ADMIN

This query change in the code doesn't change the restrictions put in the profile.

Change effect


The users import LDAP  job must be run if you change the content of the white list. It is scheduled everyday or can be triggered manually:



The best way to get IT support is to use the new Service One Platform.