Image issue when using the HTML Portal Widget

Matt Lodge
Tera Expert

I've added a HTML widget to our service portal and I have uploaded an image to the widget. The page is active and I can see the image on the portal, however, other users cannot see the image, they see a white cross on a black background.

The HTML widget does not seem to allow you to add the image to the image library, nor can you retrieve uploaded images from the image library, into the HTML widget.

I have had this working before but I cannot remember how. 

This is what the page looks like for me:

find_real_file.png

And this is what the same page looks like for another user:

find_real_file.png

Any help would be appreciated.

1 ACCEPTED SOLUTION

Ivano B
ServiceNow Employee
ServiceNow Employee

Hi Matt

Navigate to the sys_attachment table and  navigate to Configure > Security Rules

find_real_file.png

In the next list you have all the access controls available to execute the CRUD for the table. Group by Operation and focus on the READ ones

find_real_file.png

Create a new Access Control on READ similar to the next image

find_real_file.png

 

This will allow people to see any image or attachment used by service portal instances in general

About access controls..

  1. First of all you can release/restrict content so be very careful or you can show something that user are not allowed OR hide something that they can see.
  2. In order to create Access Controls you need to elevate your role to security admin

find_real_file.png

 

Cheers

R0b0

View solution in original post

8 REPLIES 8

Matt Lodge
Tera Expert

So I managed to get this working a few months ago and non admin users could view the images. We have upgraded to Orlando since I originally built the page so I'm not sure if that has anything to do with it.

We recently had a clone back from our production instance and I forgot to back up this page. Now I'm rebuilding it, when I attach the image to the HTML widget, others can't see the images.

@r0b0_d3vil you mention about a new Access Control for this widget, please can you give me a bit more information on how I can do this? It would be greatly appreciated.

Regards

Matt

Ivano B
ServiceNow Employee
ServiceNow Employee

Hi Matt

Navigate to the sys_attachment table and  navigate to Configure > Security Rules

find_real_file.png

In the next list you have all the access controls available to execute the CRUD for the table. Group by Operation and focus on the READ ones

find_real_file.png

Create a new Access Control on READ similar to the next image

find_real_file.png

 

This will allow people to see any image or attachment used by service portal instances in general

About access controls..

  1. First of all you can release/restrict content so be very careful or you can show something that user are not allowed OR hide something that they can see.
  2. In order to create Access Controls you need to elevate your role to security admin

find_real_file.png

 

Cheers

R0b0

Thanks @r0b0_d3vil this has worked perfectly.

Thank you so much for your help!!

I've spent hours trying to figure this out and luckily found your solution. Worked perfectly, thank you so much for the detailed response and print screens.