Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Governance and Administ...
Answered

Custom roles not working for Model Driven App

(0) ShareShare
ReportReport
Posted on by 83

I have created a Model Driven app in my SANDBOX environment. A new custom role which has access to 2 entity and 1 Business process flow was created. When I assign the app to another user with custom role, below message is displayed on Browser.

 

 

We are experiencing some errors while trying to load the application
Application failed to load
Technical Details
at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Execute(OrganizationRequest request, InvocationContext invocationContext, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, ExecutionContext executionContext, Dictionary`2 optionalParameters) (unknown)
at Microsoft.Crm.Extensibility.OData.CrmODataExecutionContext.Execute(OrganizationRequest request) (unknown)
at Microsoft.Crm.Extensibility.OData.CrmODataMetadataServiceDataProvider.RetrieveMetadataForEntityType(CrmODataExecutionContext context, Type crmType, EntityQueryExpression entityQuery, String entityId, String crmPropertyName, Boolean retrieveAllSettings) (unknown)
at Microsoft.Crm.Extensibility.OData.CrmODataMetadataServiceDataProvider.RetrieveEdmEntityCollection(CrmODataExecutionContext context, String entitySetName, String castedEntityName, ODataQueryOptions queryOptions) (unknown)
at Microsoft.Crm.Extensibility.OData.EntityController.<>c__DisplayClass35_0.<GetEntitySetInternal>b__0() (unknown)
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable`1 additionalCustomProperties) (unknown)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action) (unknown)
at Microsoft.Crm.Extensibility.OData.EntityController.GetEntitySetInternal(String entitySetName, String castedEntityName, CrmODataExecutionContext context, CrmEdmEntityObjectCollection crmEdmEntityObjectCollection, ODataQueryOptions queryOptions) (unknown)
at Microsoft.Crm.Extensibility.OData.EntityController.GetEntitySetImplementation(String entitySetName) (unknown)
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult](ILogger logger, EventId eventId, ActivityType activityType, Func`1 func, IEnumerable`1 additionalCustomProperties) (unknown)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute[TResult](ILogger logger, XrmTelemetryActivityType activityType, Func`1 func) (unknown)
at lambda_method(Closure , Object , Object[] ) (unknown)
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters) (unknown)
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken) (unknown)
at anonymous (XXXXX/---%20End%20of%20stack%20trace%20from%20previous%20location%20where%20exception%20was%20thrown%20---)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() (unknown)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) (unknown)
at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext() (unknown)
at anonymous (XXXXX/---%20End%20of%20stack%20trace%20from%20previous%20location%20where%20exception%20was%20thrown%20---)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() (unknown)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) (unknown)
at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext() (unknown)
at anonymous (XXXXX/---%20End%20of%20stack%20trace%20from%20previous%20location%20where%20exception%20was%20thrown%20---)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() (unknown)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) (unknown)
at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext() (unknown)
  • EricRegnier Profile Picture
    8,714 Most Valuable Professional on at
    Re: Custom roles not working for Model Driven App
    Glad it helped!
  • Ajithnair621 Profile Picture
    83 on at
    Re: Custom roles not working for Model Driven App

    Thanks @EricRegnier @HSheild .

     

     

    It worked with CDS role

  • EricRegnier Profile Picture
    8,714 Most Valuable Professional on at
    Re: Custom roles not working for Model Driven App

    To add to what @HSheild mentioned, following this tip https://crmtipoftheday.com/1297/base-your-base-role-on-the-cds-user-role/, I always base new custom roles to "Common Data Service User".

    Cheers

  • Verified answer
    H Sheild Profile Picture
    3,000 Most Valuable Professional on at
    Re: Custom roles not working for Model Driven App

    Hi @Ajithnair621 ,

     

    Have you checked that your custom Security Role has the minimum privileges required to run an app? When you create a new Security Role you need to give it a set of minimum privileges and it is best to create your new Security Role by copying an existing role.

     

    This article explains it all.

    https://docs.microsoft.com/en-us/power-platform/admin/create-edit-security-role#minimum-privileges-for-common-tasks

     

    -----
     
    If this post has answered your question please consider it for "Accept as Solution" or if it has been helpful give it a "Thumbs Up".

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1

Featured topics