GlideAjax fails when tested with user that has the snc_external role

brad_12
Kilo Contributor

I am using the Create Contact record producer to allow customer admins to create additional contacts for their account. I am putting some data validation on the email field to prevent the action if a duplicate email exists in the system. I never could get anything from my server script to alert to the screen. 

After some testing, I found that if the client script is called when I am impersonating a customer (someone with snc_external role) GlideAjax will not properly instantiate. If I call the same script when using my admin account, everything works fine. Is there some permission that needs to be enabled to allow this to occur?

1 ACCEPTED SOLUTION

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Brad,

 

I'm able to reproduce this at my end. However, I'm able to get it working by creating an ACL against the script include and assigning snc_external roles to it.

- Pradeep Sharma

View solution in original post

7 REPLIES 7

how can I add name of Script include it isn't allowing

find_real_file.png

Oops, forgot to say you have to change Type == client_callable_script_include

find_real_file.png

Hi,

I have replied to your question with the solution

please check

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader