- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2023 11:38 AM
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,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 05:09 AM - edited 09-26-2023 05:09 AM
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...
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
09-26-2023 03:15 AM - edited 09-26-2023 03:16 AM
Hi @_Samay
May be user's are missing "Read" level access on table which list collector is referring.
can you check...??
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
09-26-2023 04:58 AM
Hi Vishal, Please find below image of Reference Qualifier. We are passing a query, query is hardcoded, not dynamic like any variable.
PFA Script Include.
We are preparing array based on query.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 05:09 AM - edited 09-26-2023 05:09 AM
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...
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
09-28-2023 12:16 AM
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,