Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

Edit access on a field for only particular role

GTSNOW
Giga Guru

Hi,

I have created a Check Box field in incident form. I want that field to be made true or false only by the incident manager role I created. Please help.

1 ACCEPTED SOLUTION

try script option



if(gs.hasRole('rolename'))


{


answer=true;


}


View solution in original post

10 REPLIES 10

Hi Gaurav,


Login as an admin


Type, Debug in navigation pane


Now select 'Debug Security' model.


Now impersonate with user account which is in conflict


Provide the screenshots of ACLs


Hi Deepak,


I did debugging, every thing seems OK. My ACL is still not getting applied. I have given role as incident manager but it grades out and not able to check.


I have already attached SS in above reply.


try script option



if(gs.hasRole('rolename'))


{


answer=true;


}


You are awesome. Thanks for helping. Any idea why it was not working without script.


Actually no idea. But it had happened to me once