The CreatorCon Call for Content is officially open! Get started here.

How to make dashboard visible for snc_external users. I want to make dashboard visible on CSM portal with dynamic filter.

Mrunal Nagarkar
Tera Contributor

I am using HTML widget on CSM portal to show dashboard and using provided link to show dashboard.

<iframe style="overflow: hidden; height: 1000px; width: 100%;" src="URLFromStep2Here" width="100%" height="100%" frameborder="0"></iframe>

Dashboard is visible for ITIL users but snc_external users throwing security constraint error.

"Security constraints prevent access to requested page"

I have given following access to snc_external(ACL)

1. Read access for table on which dashboard is created

 

If this is not right approach to show dashboard on for snc_external users. please suggest another way to show dashboard on CSM portal

3 REPLIES 3

Yousaf
Giga Sage

Hi,

Publishing could be the reason here. Did you publish the reports.


***Mark Correct or Helpful if it helps.***

Stefan Lowrie
ServiceNow Employee
ServiceNow Employee

Did you ever get an answer to this?  I'm trying to solve this exact use case now.  I found how to make reports visible on the CSM portal with ACLs, but I have not found how to make this HTML widget load for an external user.

Found a solution to this issue:

  1. Follow this manual:
     Published report on service portal report widget not working for external users (snc_external) "Secu...
    Quote:
    1) Navigate to System Security > Access Controls (ACL).
    2) Click the New button.
    3) Set the Type to ui_page, the Operation to read, and the Name to report_viewer
    4) Add the snc_internal and snc_external roles. 
    5) Save the ACL.
    6) Repeat step 1 & 2, then set the Type to 'record', the Operation to 'read', and the Name to 'sys_report'
    7) Add the snc_external role and save the ACL
    😎 Repeat step 1 & 2, then set the Type to 'record', the Operation to 'report_view', and the Name to the table where the data in the report comes from. For example, if the report is for Incident, then put the name on incident
    9) Add the snc_external role and save the ACL.

     

  2. Make sure you have given report_view access for the data on Table and on Field level
    (e.g. incident has "incident" and "incident.*" report_view rules in place for itil - give both also to snc_external)
  3. Make sure you have given read access for the data on Table and on Field level
    (e.g. incident has "incident" and "incident.*" read rules in place for itil - give both also to snc_external)
  4. Here comes the magic concerning the HTML Widget:
    1. Create an ACL - Type "record" - read access for "pa_dashboard"
      Krecker_1-1757800039594.png
    2. Create an ACL - Type "ui_page" - read access for "$pa_dashboard"
      Krecker_0-1757799617493.png

       


I used this code iny my HTML Widget:

 (replace the dashboard SysID with yours)

<p><iframe style="overflow: hidden; height: 1000px; width: 100%;" src="$pa_dashboard.do?sysparm_dashboard=8e3a39e3c3bf66101cec744a0501317a" width="100%" height="100%" frameborder="0"></iframe></p>