Write ACL Not Working on passing property

ABC6
Tera Contributor

Hello Team,

I have a requirement where i need to restrict the itil user write permission for few records, for which i did create a write acl and Write the script like this but it is not picking up the property Value

 

ACL Script:

if(gs.hasRole('itil') && gs.getProperty('cmpy.write'))
{
    answer=true;
}
 
Property SS:
 
ABC6_0-1722597405201.png

 

1 ACCEPTED SOLUTION

Hello @ABC6 ,

 

You can use below path to activate Access Analyzer in your instance. Only system administrator role is required, no special permission is needed as it does not impact your instance.

 

App. Navigator > System defintion > Plugins > Search access analyzer and install it.

 

Begin your troubleshooting. Hope it helps.

 

Mark this as Correct/Helpful if above info. helps in any way and help in closing this thread.

 

Regards,

Shubham

View solution in original post

10 REPLIES 10

Sandeep Rajput
Tera Patron
Tera Patron

@ABC6 I recommend you to use the access analyser to check which ACL is responsible for granting the write ACL on the record to the ITIL user.

 

Also, if possible please post the screenshot of your ACLs. 

ABC6_0-1722598947042.pngABC6_1-1722599019881.pngABC6_2-1722599079294.pngABC6_3-1722599103556.png

 

 

@ABC6 As rightly pointed by @ShubhamGarg the property mentioned in the ACL script and the property defined in the system property (according to the screenshot) are completely different due to which the ACL script might be failing.

Already renamed that property, Please ignore it