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

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

That did the trick thank you.

Hi @Pradeep Sharma ,

I am stuck with same issue. Could you please help me with the ACL part of how to implement it.

You would create an ACL with Operation == execute and Name == <name of script include>. Then add the roles of the users that need to execute said script include, "snc_external" for example.