Script Include doesn't return a value for a Non-Admin user.

Yanal
Giga Guru

Hello people!

I have a Script Include that returns a value to a Catalog Client Script and puts it in a field on the Portal, this works fine for admin users, but when I impersonate the real requester it doesn't work and the value returned is always null. 

any help would be really appreciated 

1 ACCEPTED SOLUTION

Yanal
Giga Guru

The solution to my question was is that I needed to create an ACL of type " client_callable_script_inclue"  and added a role "snc_external"

screen shot will follow.

find_real_file.png

View solution in original post

6 REPLIES 6

Mark Roethof
Tera Patron
Tera Patron

Hi there,

What kind of data should be returned? The query that is performed, retrieving some kind of data, does the non-admin user have read rights for this? 

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Hello! 
thanks for the reply, well the thing is that the script include only returns a string " Hello World! " and still as  a non admin user that string is displayed Null.

 

So how does the script include and catalog client script looks like?

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Thanks Mark for your help.

the solution was is that I needed to create a Client Callable Script Include ACL 

 

Best Regards