Restrict alm_hardware fileds based on user part of group or not

krishna761
Tera Contributor

Hi,

 

I have a requirement, Restrict the write access

who are part of this group ‘DaaS Edit’ can only modify the records with model category is computer in alm_Hardware table.

 

i have created ACL as below

alm_hardware.*

condition is model_category is computer

 script: 

answer = gs.getUser().isMemberOf('DaaS-Edit');
still not working. Please help me on this.
1 REPLY 1

Anantha Gowrara
Kilo Sage

Hi @krishna761 ,If your instance is in Vancouver or above you can make use of OOTB group check logic instead of script(see below image). Additionally you can enable debug security and see which part of ACL is failing.

AnanthaGowrara_0-1727189590337.png

 

AnanthaGowrara_1-1727190336707.png

Security Debugger will show exactly which part of the ACL is returning false. When you see red cross symbol hover on that to see which part is failing.