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.
Thanks for all your responses :) The issue was form "Enable Security Roles" related after all.
I am not sure whether by DEFAULT on custom form the security is only enabled for System Administrator and System Customizer Roles only OR one of my team members restricted access to these two roles.
But on reviewing these the and enabling the form for other Roles the JS script started to download for non admin users.
lesson learned do not assume, always check and double check especially in a team environment.
I opened a support ticket with Microsoft. They reviewed the details and will get back to me. Any one else have any idea, would be appreciated?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156