not able to edit templates as an admin also and how to give access writes to itil user?

Gudu
Tera Contributor

Hello Developers,

templates are not editable as a admin also and how to give write access to itil user. 

As checked the acl , this is written as below

 

if(current.global==true && !gs.hasRole('template_editor_global'))
answer=false;
else
answer=true

 

acl.PNG

 

 

 

 

4 REPLIES 4

Anil Lande
Kilo Patron

Hi,

Either give role 'template_editor_global' to required set of users or create new ACL's to allow itil users to edit templates.

Make sure you only allow set of peoples to edit, and check documentation to understand why same is restricted for itil users.

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0564004

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0683947

 

The Global checkbox on template is an option for allowing any user who can access the templates to view and apply this template. So Allowing itil users to edit Global template is not good option as it may affect many people who are using global template.

 

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Gudu
Tera Contributor

Hello Anil,

Thanks for your answer. However even as an adminstrator , it is not allowing me to edit the template name and also i gave the role "template_editor_global" to me also (note- i am having admin role) , it is not allowing me to edit the template. Please suggest on this.

Hi,

Have you checked row level ACL? Above ACL will only give write access to Name column, however if you do not have write access to record then it will not work. Check what all ACL's you have on table with Write Access.

Also make sure there is no Client side script/policy making it read-only (or maybe Data Policy).

Have you tried field Water for this field? also try enabling debugger.

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Gudu
Tera Contributor

Hello Anil,

as checked the script , it is written as below 

 

if(current.global==true && !gs.hasRole('template_editor_global'))
answer=false;
else
answer=true;

 

i tried giving me as admin too "template_editor_global" role too but still the name field is disabled for me. Am i missing something else.

 

if i deactivate the ACL then it is allowing me to edit so it is confirmed that there is no other rule works.