- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-22-2016 01:32 PM
Hi Everybody!
In a catalog item I have a Lookup Select Box that pulls a filtered set of groups from our sys_user_group table. This will ultimately determine routing of a specific request, which all works fine simply using "task.setDisplayValue('assignment_group', current.variables.ourvariablename);" in the task we want pointed.
Unfortunately, during testing I found out our end users cannot see the items in this select box, most likely due to no ACL existing which by default allows end users to read data from the Group table.
What is the most basic way I can make an ACL which grants access to the Name field on sys_user_group? I've tried the following and thus far haven't seen any success:
Access Control:
Type: Record
Operation: Read
Admin Overrides: True
Name: Group [sys_user_group]
Field: Name
Advanced: True
Script:
if (gs.getUser().hasRoles())
answer = true;
else
answer = false;
Is there an easier way to simply allow this field for anybody to see?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-22-2016 01:37 PM
Example:
And to test with Joe Employee... can read the list. If I drill in to the record, I get just read-only fields.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-22-2016 02:13 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-22-2016 02:17 PM
If you click the link next to red X, you will be taken to the exact ACL rule. There's a script field that is forcing a false result.
There's your fix!
Yes, I love the ACL debugger. Eureka is when it came about - so much better than the old days.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-22-2016 02:38 PM
That link took me to the OOB sys_user_group ACL. I thought ACLs can't conflict, so that as long as a single ACL reads true you would be able to access something.. Hmm.
Any tips with this one? I'm not capable of following most of the script here. I could always open a case, but you seem so knowledgeable.. lol
EDIT: I suppose i could just inactivate that ACL since we are now allowing anybody to read the sys_user_group table, right?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-22-2016 02:40 PM
Hi Travis,
Don't inactivate the existing ACL. Create a new one with just the public role for read access on the table. See my image I included earlier. That will work.
If ACLs conflict, the one with the most access wins. If one says "no" and the other says "yes", you get a "yes" answer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-22-2016 02:54 PM