Restrict records from global search

Vineetha Rohra1
Giga Guru

I have the Contract Management customized in my instance.

Users who do not belong to my Contract groups are also able to view records if they search any contract by its number from the global search.

I tried doing following but no help:

1.Updated the global text search properties for my contract table

2. Tried playing with Text search groups

3. Wrote before query BR:

var grpMember = gs.getUserID().isMemberOf(' My Contract group'); //name changed

  if(grpMember) //Check if the current user is member of the group

  {

gs.addInfoMessage("yes");

  answer = 'true';

  }

else

{

gs.addInfoMessage("no");

  answer = 'false';

}

In this case, log prints no when we try searching from global text search but the record still appears.

4. Tried ACLs with condition:

if(gs.getUserID().isMemberOf(' My contract group'));

{

answer = true;

gs.log("ACL check true");

}

I do not want any users other than those who belong to 'My contract group' to be able to view contract records, not even via global text search.

Any help how do I resolve this.

1 ACCEPTED SOLUTION

Venkat122
Kilo Guru

Hi Vineetha,



You can acheive it by using Read ACL and check if there is any Read ACL is masking this and giving access to ITIL users



if(gs.getUserID().isMemberOf(' My contract group'));


{


answer = true;


gs.log("ACL check true");


}


else


{


answer = false;


}


View solution in original post

4 REPLIES 4

Venkat122
Kilo Guru

Hi Vineetha,



You can acheive it by using Read ACL and check if there is any Read ACL is masking this and giving access to ITIL users



if(gs.getUserID().isMemberOf(' My contract group'));


{


answer = true;


gs.log("ACL check true");


}


else


{


answer = false;


}


How do we check if one ACL is masking other ACLs ? Please guide me.


go to the table and open ACLs defined on the table. Check how many read ACLs are there and make it one ACL with all your conditions defined


Hello,



Thank you for your reply. It was an ACL issue only. Like you suggested, i made one ACL of all read ACLs that were there, now its working fine



Thanks.