Script include returning null

Nagasri
Tera Expert

When we impersonate end users with snc_internal role , script include returning null, else it is working fine

 

Nagasri_0-1706164951963.png

Please help us here

 

6 REPLIES 6

sggsnoblewinner
Giga Contributor

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

Vishal Birajdar
Giga Sage

Hello @Nagasri 

 

Can you put some logs in script include & impersonate with user having snc_internal role & check if script include is being called ....!!

'

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates

Jaspal Singh
Mega Patron
Mega Patron

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.

Tai Vu
Kilo Patron
Kilo Patron

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