web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / javascript error in mo...
Power Pages
Unanswered

javascript error in model-driven app for non admin users

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi everyone,

 

I have a couple of web resources in my model-driven app. When I share the app with users having specific roles, they get the following error. If I provide access to the "system admin", they can access the application. However, providing system admin access to all users is not a good idea. How can I get rid of this error without providing system admin access?

 

hafizsultan242_0-1693292720048.png

 

@saudali_25  , @Lucas001 , @Mglat  , @ragavanrajan , @Fubar any suggestions please..

 

Kind Regards,

Hafiz

Categories:
I have the same question (0)
  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hey @Anonymous 

     

    Did you try "web files" rather than web resources? Is there any specific reason for your web resource? Usually the following works 

    1.  Create a web file 

    2. Make sure to set the parent page to "Home"

    3. Add appropriate web page access control rule which is linked to the web roles 

     

    This method will work. 

     

    Alternatively, try creating Dataverse security roles - perhaps delegated roles with custom privileges to access web resources. ( I need to check this to confirm) 

     

    Try the web file method and let us know.

     

    Hope it helps.
    ------------

    If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

     

  • Saud Ali Profile Picture
    812 Super User 2024 Season 1 on at

    Hi @Anonymous ,

     

    Are you using any condition in your script that validates security role during execution? 

     

    Thanks,

    Saud

     

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Fubar Profile Picture
    8,491 Super User 2026 Season 1 on at

    Have you created Security Roles for your users and have you assigned those roles to the users directly or to a Team they are a member of?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Valantis Profile Picture

Valantis 49

#2
11manish Profile Picture

11manish 33

#3
Haque Profile Picture

Haque 28

Last 30 days Overall leaderboard