Reference Qualifier with Script Include in List Collector Variable

_Samay
Tera Expert

Hi Friends,

We have one requirement, where into a variable list collector we have populate list of users those are members of 3-4 groups. With the help of script include we have found list of users and use that script include into reference qualifier into list collector.

When we open that record producer in portal when no records are coming when we logging non-admin profiles but when we login as admin then records are coming.

List collector variable is getting displayed and read only form UI policy.

Not sure, what would be right way to achieve this.

Thanks, 

1 ACCEPTED SOLUTION

Hi Samay,

 

As you are calling it from reference qualifier no need to make your script include client callable.

 

Second you have used GlideRecordSecure() ....!! 

ACL will be validated for this...!!

Try to use normal GlideRecord() & check.

 

If end user gets the list of users in portal with normal glide record then with GlideRecordSecure() it will be an ACL issue...

 

 

 

Vishal Birajdar
ServiceNow Developer

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

View solution in original post

8 REPLIES 8

anshul_goyal
Kilo Sage

Hello @_Samay,
Is your script include client callable? If "Yes", please check the ACL created in the related list of that script include.
Thanks and Regards,
Anshul

Hi Anshul, Thanks for your valuable response. I can see, Script Include is not client callable. 

But, how come as an admin, It's working for me, like list of records are coming ?

Vishal Birajdar
Giga Sage

Hi @_Samay 

 

If possible can you share snippet of your code.

Both client script and script include.

 

Vishal Birajdar
ServiceNow Developer

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

Hi Vishal, In List Collector variable on User Table. I'm trying to use reference qualifier where we can pull list of users whose are members of some groups and we used Script include for that. But, when i impersonate then no data or users are coming into list collector where as an admin users are populating.