Admin user suddenly cannot edit any scripts “Cannot edit in read-only editor”
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
59m ago
Hi,
I have the admin role, but I suddenly noticed that I can’t edit any script fields in the instance.
This happens with Client Scripts, Business Rules, Script Includes, Dynamic Content, etc. The script editor shows:
“Cannot edit in read-only editor”
Has anyone experienced this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
48m ago - last edited 42m ago
Hi @Med99,
Please check if your user is part of Conditional Script Writer group. If it is not, then add your user to this group.
This group has the role to access those fields which can be scripted/coded.
Please Accept this response as Solution if it assisted you with your question & Mark this response as Helpful.
Kind Regards,
Ehab Pilloor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
34m ago
Hi @Med99 ,
Please check 'snc_required_script_writer_permission' is this role is added or not. even for admin this role is need to edit the script.
Regards
BK
LinkedIn: https://www.linkedin.com/in/bhavyashree-karanth-55032a121
YouTube: https://www.youtube.com/@NowWithBhavya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
24m ago
Hi @Med99 ,
ServiceNow introduced Scripting Governance, where having the admin role alone is no longer enough to edit script fields. Users must also have either:
- Membership in the Conditional Script Writer group, or
- The snc_required_script_writer_permission role directly assigned.
This affects scriptable fields such as:
- Business Rules
- Client Scripts
- Script Includes
- ACL Scripts
- UI Policies
- HTML/Script fields
- Other scriptable elements
CHECK: -
1.Navigate to: User Administration > Users
2.Open your user record.
3.Check if you are a member of:Conditional Script Writer
4.Or verify whether you have the role:snc_required_script_writer_permission
If missing Add yourself to the Conditional Script Writer group (recommended), log out and log back in, then test again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
19m ago
hi @Med99 ,
-
Go to System Definition → Dictionary.
-
Select the table containing the Script-type field
-
Open the Dictionary record for the Script field.
- UnCheck the Read-only box click Save.
If my response helped, please mark it as the accepted solution
