Field data restriction for widget
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2023 09:46 AM
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,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2023 10:14 PM
Read acl should ideally work. Can you paste the ACL here ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2023 02:37 AM
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.
-
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.
-
Create a Script Include that returns false if the user doesn't have the necessary access rights.
-
Modify the UI Policy (Scripting Option):
- Edit the UI Policy you created earlier.
- Under the
Advanced
section, set theScript
option. - In the script, use the Script Include you created to perform the access check.
-
Create an ACL:
- Create a new ACL for the table containing the field. Set the conditions to restrict access based on your requirements.
-
In the ACL, specify the field and choose the access rights you want to enforce.
Regards,
Riya Verma