Client script is not working for specific users
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2022 01:48 PM
Hi Team,
i have created customer changes record producer for change req mgmnt
i have created a catalog client script to load put some values
i have written alert to check that script is reachable or not
i found issue with some users and a pattern
if i create a user in sys_user table and assign company and " itil "and "snc internal role" --client script is working fine
when i'm creating user from core_copmany giving same roles was not able to access client script
note: Both users are having same roles same company
it simple client script nothing complex
consider only one line of code alert("reacgeble load script");
can anyone help me overcome the issue
- Labels:
-
Change Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2022 10:54 PM
it is onload catalog client script
client script is not working
and client script is not reachable for that users
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2022 11:04 PM
Hi,
your requirement is not clear.
you are sending company value to script include but not using it?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2022 11:14 PM
hey ankur
ignore about script include and all
i have written now onload client script
with below code
function onLoad() {
alert("checking users to can access this svcript");
}
and it is working for admin and type1 users mentioned in question and type2 user not able reach the alert code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2022 11:24 PM
Hi,
is the other user having access to the form?
can you share the form screenshot?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2022 11:28 PM