Why is scirpt include not called?

yuchen zhang
Tera Contributor

Hello, everyone.
I'm wondering why I'm finding that script include doesn't seem to be allowed to be called when I'm doing a test with a certain user.
Thanks in advance.

yuchenzhang_0-1693813907470.png

 

1 ACCEPTED SOLUTION

Hi @yuchen zhang

 

you would need to create a read ACL for snc_external on sys_user table for this. Please follow the below docs for creating this.

https://docs.servicenow.com/en-US/bundle/vancouver-platform-security/page/administer/contextual-secu...

 

Mark this answer as correct and helpful if it solves your issue.

 

Regards,

Siva Jyothi.

View solution in original post

4 REPLIES 4

Shivam28
Tera Contributor

Ensure that the user making the request has the appropriate permissions to access the script include. Make sure the user's role includes the necessary permissions.

Siva Jyothi M
Mega Sage

Hi @yuchen zhang,

 

As soon as a client callable script include is created, sometimes a ACL gets created with the same name as script include. If the user doesn't have the role which is part of the ACL, then the script include doesn't work.

Can you try checking if any ACL is created and check the roles in the ACL.

 

Mark this answer as correct and helpful if it solves your issue.

 

Regards,

Siva Jyothi.

Now only users with snc_external permission cannot call this script include. I found that this user cannot view the sys_user table, but I don't know why this user cannot access the sys_user table.

Looking forward to your reply!

Hi @yuchen zhang

 

you would need to create a read ACL for snc_external on sys_user table for this. Please follow the below docs for creating this.

https://docs.servicenow.com/en-US/bundle/vancouver-platform-security/page/administer/contextual-secu...

 

Mark this answer as correct and helpful if it solves your issue.

 

Regards,

Siva Jyothi.