The CreatorCon Call for Content is officially open! Get started here.

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

Hi @_Samay 

 

May be user's are missing "Read" level access on table which list collector is referring.

can you check...??

 

  

Vishal Birajdar
ServiceNow Developer

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

Hi Vishal, Please find below image of Reference Qualifier. We are passing a query, query is hardcoded, not dynamic like any variable. 

_Samay_0-1695729383951.png

PFA Script Include. 

_Samay_1-1695729470246.png

We are preparing array based on query. 

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

Hi Vishal, Thanks for your reply. yes. You are correct. Because GlideRecordSecure system was trying to check if user has rights to view those records hence it was not displaying. 

 

Thanks,