Script include returning null
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2024 10:42 PM
When we impersonate end users with snc_internal role , script include returning null, else it is working fine
Please help us here
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2024 10:50 PM
Can you please check the user you are impersonating is having access of the group member table. If query is working fine for you and not with the impersonated user then it must be table access issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2024 10:54 PM
Hello @Nagasri
Can you put some logs in script include & impersonate with user having snc_internal role & check if script include is being called ....!!
'
ServiceNow Developer
I know one thing, and that is that I know nothing.
- Socrates

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2024 11:12 PM
Hi,
What is that you pass as sysparm_user? logged in user or some selected user? I guess the user might not have read access to sys_user_grmember table and thus the case.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2024 11:55 PM - edited 01-24-2024 11:57 PM
Hi @Nagasri
Let's review the ACLs to see if any are defined for your Script Include.
In your scenario, the ACL Name corresponds to the script include name, and the Operation is execute.
URL: https://<instance_name>/sys_security_acl_list.do?sysparm_query=operation%3Dexecute%5Ename%3DYaraGlobalGetGroupUserDetails&sysparm_view=
Cheers,
Tai Vu