---
sourceDocument: Australia ServiceNow AI Platform user interface
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/pt-BR/platform-user-interface

 Release :

    - australia

ft:locale :

    - pt-BR

ft:publication_title :

    - Australia ServiceNow AI Platform user interface

ft:clusterId :

    - platux

bundleId :

    - platux

workflow :

    - Platform


---

# Configure widget security

# Configure widget security {#ariaid-title1}

* Versão de lançamento: Australia
* 
* Atualizado 12 de mar. de 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 min. de leitura

Configure widget security to ensure that your widget is being accessed only by the
intended audience.

## Antes de Iniciar

Role required: admin or sp_admin

## Por Que e Quando Desempenhar Esta Tarefa

There are several ways to configure widget security:

* Restrict the widget to users with a login only (authenticated users)
* Restrict the widget to users with certain roles only
* Restrict which tables a public widget can access and return data from for guest (unauthenticated) users
{#configure-widget-security__ul_ehl_myt_hkb}

When you configure widget security, configure the page security accordingly so that
users can access the widget via the page on which it appears. For more information,
see [Configure page security by role](https://servicenow-prod.fluidtopics.net/R4wHgTAtAtnZAuDJC9AK2A "Set up pages to be public or filter them by role.").

## Procedimento

1. Navigate to AllService PortalWidgets.
2. Open the record of the widget to configure.
3. On the form, configure the widget security.

   | Option | Procedure |
   | Restrict the widget to authenticated users | Clear the Public check box and leave the Roles field blank. |
   | Restrict the widget to certain roles | 1. Clear the Public check box. 2. Next to Roles, select the edit icon (![Edit icon]()). 3. On the Roles window, select a role by moving it from the Available list to the Selected list. 4. Select Done. {#configure-widget-security__ol_lgg_5zt_hkb} |
   | Restrict which tables public widgets can access for guest users | 1. Select the Public check box. Nota: Public widgets are accessible by any user even if the Roles list contains roles. 2. Specify the tables that public widgets can access for guest users. This applies to widgets that accept the table input parameter only. 1. In the Public Table Allow List related list, select New. 2. In the Tables field, select a table from which guest users can access data in the widget. 3. Select Submit. 4. Repeat these steps to add additional tables. {#configure-widget-security__ol_ihp_tqy_yzb} 3. In the Server script field, call the SPWidgetAccessControl API before any call to GlideRecord(options.table) and GlideRecordSecure(options.table). For example: if(!new global.SPWidgetAccessControl().hasPublicAccess(options.table, $sp, options, input)){ gs.warn("Deny access to table which is not public: " + options.table); data.isValid = false; return; } The parameters passed with SPWidgetAccessControl should be the same as those passed with GlideRecord(options.table) and GlideRecordSecure(options.table). For details on the SPWidgetAccessControl API, see [SPWidgetAccessControl - Global](https://www.servicenow.com/docs/access?context=SPWidgetAccessControlGlobalAPI&version=australia&pubname=australia-api-reference&ft:locale=en-US). 4. Select Save. {#configure-widget-security__ol_hws_n3y_yzb} |
   |-|-|

   {#configure-widget-security__choicetable_n5r_xyt_hkb}
4. Select Update.

