Skip to main content

Notifications

Dynamics 365 general forum

JavaScript Web Resource files not downloading to client when non system administrator user

Posted on by 75

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.

  • Verified answer
    MK77 Profile Picture
    MK77 75 on at
    RE: JavaScript Web Resource files not downloading to client when non system administrator user

    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.

  • MK77 Profile Picture
    MK77 75 on at
    RE: JavaScript Web Resource files not downloading to client when non system administrator user

    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?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans