- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2023 05:47 AM - edited 11-24-2023 05:48 AM
Hi,
I have a story with the following requirements:
-Create a new table with some fields which will hold data - I have done that and made a table, it is in global scope and is not extended from any other table as per the requirements.
- Create / Read / Update Access is required ONLY for BUS.INSURANCE.WEALTH-SUPPORT user group.
I am stuck in the ACL and am not sure what to do. Initially I created a read ACL with the following script:
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2023 06:19 AM
@snow_beginner Please update your script as follows.
var groupSysId = gs.getProperty("experian.bancs.bus.insurance.wealth.group.sysid");
var grGroup = new GlideRecord("sys_user_group");
var groupName = "";
if (grGroup.get(groupSysId)) {
groupName = grGroup.name.toString();
}
answer = checkGroupMember(groupName);
function checkGroupMember(groupName) {
if (gs.getUser().isMemberOf(groupName)) {
return true;
} else {
return false;
}
}
Please mark my answer helpful and correct if it manages to address your issue.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2023 07:03 AM
@snow_beginner You need to apply the same script in write and create ACL too.
Last but not the least, upvote and mark my solution as correct answer.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2023 06:19 AM
@snow_beginner Please update your script as follows.
var groupSysId = gs.getProperty("experian.bancs.bus.insurance.wealth.group.sysid");
var grGroup = new GlideRecord("sys_user_group");
var groupName = "";
if (grGroup.get(groupSysId)) {
groupName = grGroup.name.toString();
}
answer = checkGroupMember(groupName);
function checkGroupMember(groupName) {
if (gs.getUser().isMemberOf(groupName)) {
return true;
} else {
return false;
}
}
Please mark my answer helpful and correct if it manages to address your issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2023 06:47 AM
Thanks so much! That has made it so that the impersonated user can see the table and the record too and everything looks great. The only issue is that all the fields are read only for them I think they need to be editable as well. Do I need to change that read acl to create or update or make a new one for create and update?
Pic attached of what user sees now (3)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2023 07:03 AM
@snow_beginner You need to apply the same script in write and create ACL too.
Last but not the least, upvote and mark my solution as correct answer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2023 06:55 AM
Hi @snow_beginner ,
I guess that you are practicing ACL scripts but why you are trying to script it, if this can be done by 3 clicks via GUI in studio?