Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to restrict 5 or more fields through ACL?

RAM75
Tera Contributor

How to restrict 5 or more fields through ACL?

My Scenario: In the incident form 10 or more fields are there, but need to restrict  5 fields for the particular user or Role through ACL.

Please provide any examples.

Thanks

3 REPLIES 3

Shambhu K B
Giga Guru

Write table.field (filed name which you want to restrict access for ) ACL on incident table. write the script check your role and return true or false based on logged in user role.

Please mark this answer helpfull / correct answer if this resolves your issue.

Regards,

Shambhu

Maik Skoddow
Tera Patron
Tera Patron

Hi @RAM 

configure your ACLs as follows:

ACL Operation Role A Role B
incident.none read x x
incident.* write   x
incident.none write x x
incident.field1 write x  
incident.field2 write x  
incident.field3 write x  
incident.field4 write x  
incident.field5 write x  

 

Then give users who should be able to write into fields 1-5 Role A. All other users need Role B

Kind regards
Maik

If my answer replied your question please mark appropriate response as correct so that the question will appear as resolved for other users who may have a similar question in the future.

Hi @RAM 

Did my reply answer your question?

If so, please mark the appropriate response as "correct" so that the question will appear as resolved for other users who may have a similar question in the future.

If not, please tell me what you are still missing!

Many thanks & kind regards
Maik