Field data restriction for widget

Victor Monteale
Tera Guru

Hi everyone, I have a query to do. Is there a way to restrict a field data access to a widget in the service portal? I have tried Read ACL, business rules (display, before - query), and UI Policy to avoid access to the field data but none of them have worked.

 

I know that by modifying the widget I can hide the field data on the html I don't want to show, however, because of "requirements" I must avoid widget updates, and hide that information in service portal.

 

Is there a system property to restrict access to field data, DOM manipulation, or something else I can use?

 

I appreciate any help

Regards,

2 REPLIES 2

LadySNWizard
Tera Contributor

Read acl should ideally work. Can you paste the ACL here ?

Riya Verma
Kilo Sage
Kilo Sage

Hi @Victor Monteale ,

 

Hope you are doing great.

 

To restrict field data access specifically within a widget on the Service Portal without modifying the widget itself, you can utilize a combination of UI Policies and ACLs.

  1. Create a UI Policy:

    • Create a new UI Policy that targets the field you want to restrict access to. In the conditions, set it to true for the field you want to hide.
  2. Create a Script Include that returns false if the user doesn't have the necessary access rights.

  3. Modify the UI Policy (Scripting Option):

    • Edit the UI Policy you created earlier.
    • Under the Advanced section, set the Script option.
    • In the script, use the Script Include you created to perform the access check.
  4. Create an ACL:

    • Create a new ACL for the table containing the field. Set the conditions to restrict access based on your requirements.
  5. In the ACL, specify the field and choose the access rights you want to enforce.

 

 
 
Please mark the appropriate response as correct answer and helpful, This may help other community users to follow correct solution.
Regards,
Riya Verma