Use ACL to hide Variable editor

emaasalmi
Kilo Sage

Is there a way to hide Variable editor from RITM form using ACL? I've found a few topics about hiding the variables on the UI side (for example This), but nothing on ACL. I know the Variable editor is a formatter, so the "normal" way doesn't work.

The requirement is to display a few fields for all itil users, but all the rest are only visible if the current user is a part of a group which has been given access. This means that I can't create the ACL's on the table level.

1 ACCEPTED SOLUTION

emaasalmi
Kilo Sage

Thanks for all your answers. You confirmed what I had already thought.

I went with a different route and modified the "com_glideapp_servicecatalog_veditor" UI Macro with a condition. Now, if the same conditions that are used in the ACL's don't match, the Variable editor won't fetch the Variables to the formatter in the first place.

View solution in original post

7 REPLIES 7

emaasalmi
Kilo Sage

Thanks for all your answers. You confirmed what I had already thought.

I went with a different route and modified the "com_glideapp_servicecatalog_veditor" UI Macro with a condition. Now, if the same conditions that are used in the ACL's don't match, the Variable editor won't fetch the Variables to the formatter in the first place.

Glad that you got the resolution.

Please mark your reply as correct and close the thread so that anyone searching on this will find it easily in future.

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Megha Padale
Giga Guru

Hi,

Check below link,

https://community.servicenow.com/community?id=community_question&sys_id=65e54f21db1cdbc01dcaf3231f96...

If my answer helped you in any way, mark answer as helpful and correct.

Thanks and regards,

Megha.