- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2019 05:22 AM
I created a catalog client script onLoad that call a script include using GlideAjax but on portal when i open the item, with admin the ajax call work, with other user (without role) don't work. I inserted some log on script include and with no-admin user the script include is not execute.
This is the call:
This is the called function:
This is the result with admin:
This is the result without admin:
-----------------------------------EDIT-----------------------------------------
My script include:
My catalog client script:
Anyone can help?
Thanks
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2019 02:05 AM
Hi Can you add the below function after line number 3
isPublic: function () {
return true;
},
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2019 05:37 AM
Hi,
can you please share script include code
Thanks,
Vishal

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2019 05:37 AM
Hi there,
Could this be a rights issue? Like ACL's? Are you trying to access data thru the GlideAjax? Which is available for the admin role, though not for the users without any role? Not sure because you've cut some pieces out of the screenshots 🙂
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
---
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2019 06:52 AM
Usually when I run into problems like this, it's related to the ACLs on the tables that you're linking to. I would check and make sure that the non-admin user has read access on the fields that are being accessed by the client script. Hopefully granting read access will clear up the issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2019 01:18 AM
In my case i don't need ACL because my script include return a simple string, the catalog client script start but the function called using glide ajax don't