Configure widget security
Configure widget security to ensure that your widget is being accessed only by the intended audience.
Before you begin
Role required: admin or sp_admin
About this task
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
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.
Procedure
Navigate to All > Service Portal > Widgets.
Open the record of the widget to configure.
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 |
|
| Restrict which tables public widgets can access for guest users |
Note: Public widgets are accessible by any user even if the Roles list contains roles.
This applies to widgets that accept the table input parameter only.
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.
|
- Select Update.
Parent Topic:Managing portal access