ACL on Database View
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2021 01:03 AM
Hi,
I would like to know if we can write ACL's on database view. I am trying to give write access to one of the groups to a field from 'awa_agent_presence_capacity' database view which is not working.
My Script in ACL :
answer = false;
if(gs.getUser().isMemberOf('my custom group')){
answer = true;
}
Can someone help me on this?
TIA
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2021 01:08 AM
Hi,
You cannot write ACL on DB view. The ALC on the tables part of view will be honored.
If you can add the ACL on the table then that would be the most straightforward solution.
check this out, similar discussion here
-Anurag

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2021 01:10 AM
One of the limitations of DB views is the inability to edit the row. They're purely for reporting and data visibility purposes.
Limitations
- Database views cannot be created on tables that participate in table rotation.
- It is not possible to edit data within a database view.
- In a clone request, database view tables cannot be added as a data preserver.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2021 01:10 AM
Hi Sowmya, Check the limitations of database view
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP