I developed a client side JavaScript functions and added them to the Dynamics 365 customer service solution as web resource using the recommended steps. The functions were tested and operate as required when I am logged into the instance with Roles as a System Customizer and System Admin. But if login is as a user without these two Roles like a CSR Manager the JavaScript functions were not responding. On further investigation with client side developer tools in IE11, Chrome and Firefox I have verified that the JavaScript is in fact not downloading to the client browser for these users.
If I grant the System Administrator Role to the user the functions work fine and I can use client side debugger in the browser. As soon as I take away the Role and reload the browser the debug points I set do not pause and the JavaScript web resources are not downloaded.
I am not sure what's going on as no community forum or Microsoft docs article mentions any other requirements that secure the web resources or allow non admin users to view versus admin users.
CRM web resource (JS) cannot be rendered/controlled only for some security roles. It’s open for all.
But when you have different forms for different security roles, then there is a possibility of registered js libraries & functions missing in that particular form.
You cannot find anything like this any documentation/forum as this could be some admin/developer error.
If you enable multiple forms for Sys.Admin or CSR role, then form switcher will appear in record & you can test both behavior.