- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2023 07:59 AM
I have a report that is supposed to fetch and show me certain assets from the sc_item_option_mtom table. For this I use a script include which also works in my admin context.
When I impersonate as a normal user, no content is shown to me. Only if I specify a fixed sys_id as return value, I get a value there too.
Furthermore I don't get any log entries. Can someone help me?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2023 12:38 PM
Hi, You indicate that the code functions as expected when you run it from the report?
Does your user have access to the underpinning data and have rights to run the script-include?
Have you tried enabling security debug, impersonated user, reproduced and then reviewed the debug logs.
ACL debugging tools (servicenow.com)
Apply ACLs to AJAXGlideRecord (client-side Glide record) (servicenow.com)
If you can share your code as xml or plain text, the community would be able to validate\reproduce your issue, but unfortunately a partial screenshot provides limited options for reproducing the issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2023 12:38 PM
Hi, You indicate that the code functions as expected when you run it from the report?
Does your user have access to the underpinning data and have rights to run the script-include?
Have you tried enabling security debug, impersonated user, reproduced and then reviewed the debug logs.
ACL debugging tools (servicenow.com)
Apply ACLs to AJAXGlideRecord (client-side Glide record) (servicenow.com)
If you can share your code as xml or plain text, the community would be able to validate\reproduce your issue, but unfortunately a partial screenshot provides limited options for reproducing the issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-05-2023 05:42 AM
Thank you very much. The problem was the missing ACLs. I thought in GlideRecords, which I use in the script include, no ACLs are respected.
But I didn't know that this is different in GlideAjax.