Create ACL Rules for tables INCIDENT for hiding fields.

Pankaj
Tera Contributor

I have a requirement to hide the 'Short Description' and 'Assigned to' fields when the assignment group is not CAB Approval. This should be implemented within a single ACL .
whenever that current record is assigned to CAB Approval. (after saving that record it should get hide)

How can I do this ? please guide



I have implemented this ACL and IT works but the problem is I have to make two different ACL's for making the requirement full fill and It will be not good practice to make . I tried with code but my code is not working .

ACL stroy fields hidden.png


Thank you!

8 REPLIES 8

Service_RNow
Mega Sage

Hi @Pankaj  

You just need to create/modify ACLs. Out of the box there is one on the incident.short_description field. You can use the condition field to set things like assignment = CAB Approval.

 

Please mark reply as Helpful/Correct, if applicable. Thanks!

I have implemented this ACL and IT works but the problem is I have to make two different ACL's for making the requirement full fill and It will be not good practice to make . I tried with code but my code is not working .ACL stroy fields hidden.png

Hi @Pankaj  

ACL above you also need one more ACL to provide the access READ.

You can also achieve it through one ACL through script. The logic should be

    1. If the Assignment Group is CAB => answer = false
    2. Else (Assignment Group is not CAB) => answer = true

Sample script:

 

	if(current.getValue('assignment_group') === 'cab approval sys_id'){
		answer = false;
	}else{
		answer = true;
	}

 

Instead of sys_id use system property best practice.

Please mark reply as Helpful/Correct, if applicable. Thanks!

Kishor O
Tera Sage

@Pankaj  You should create 2 field level acl.

There is no option to fulfill this using a single acl.