---
sourceDocument: Xanadu ServiceNow AI Platform Administration
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/platform-administration

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu ServiceNow AI Platform Administration

ft:clusterId :

    - platadm

bundleId :

    - platadm

workflow :

    - Platform


---

# Disable user access to the image library for HTML area

# Disable user access to the image library for HTML area {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

By default, users can use and upload images to the image library from an HTML field. You can disable access to the image library from HTML fields. This is only applicable to HTML area and not TinyMCE.

## Before you begin

Role required: admin

## Procedure

1. Navigate to AllSystem UIUI Pages.
2. Select html_insert_image_dialog.
3. Locate the following lines of code in the HTML field and comment them out.  

       <g:evaluate var="jvar_use_dbimage">
       	var imageGR = new GlideRecord('db_image');
       	 if(imageGR.isValid())
       		imageGR.canRead();						  
       </g:evaluate>

   and

       <j:if test= "${jvar_write_dbimage}">
           <j:set var = "jvar_default_insert_image_type" value = "dbimage" />
           <g:ui_select_option text = "${gs.getMessage('Image Library')}" value = "dbimage" selected = "${jvar_default_insert_image_type}" />
       </j:if>

4. Select Update.

## What to do next

To remove the Upload from URL option in the HTML editor, add a new property named glide.ui.html.image.allow_url and set the Value to false.
**Related tasks**   

* [Add a system property](https://servicenow-prod.fluidtopics.net/r_0P5ICBCd42vTv64UVY9w#t_AddAPropertyUsingSysPropsList "Add or create a property to control system behavior.")

*[\>]: and then


