I hit a 403 forbidden when trying to update the record of an approval request for which I am the owner.
I've included the full error message bellow and I noticed it includes this - missing prvWritemsdyn_flow_approvalrequest privilege - but am unable to find anything on it
I've tried resetting the connections as shown here: https://docs.microsoft.com/en-us/power-automate/fix-flow-failures#authentication-failures
{ "status": 403, "message": "--batchresponse_ecf1a4fe-4de7-42af-9337-8053401f2973\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 403 Forbidden\r\nREQ_ID: 9335e6d2-c010-4c3b-a484-75850396398a\r\nContent-Type: application/json; odata.metadata=minimal\r\nOData-Version: 4.0\r\n\r\n{\"error\":{\"code\":\"0x80040220\",\"message\":\"Principal user (Id=3b07cd95-6282-e911-a828-000d3ae03725, type=8, roleCount=3, privilegeCount=644, accessMode=0, is missing prvWritemsdyn_flow_approvalrequest privilege (Id=1eee850d-7c4b-41ce-8b27-a49ea47d751b) on OTC=10009. context.Caller=3b07cd95-6282-e911-a828-000d3ae03725\",\"innererror\":{\"message\":\"Principal user (Id=3b07cd95-6282-e911-a828-000d3ae03725, type=8, roleCount=3, privilegeCount=644, accessMode=0, is missing prvWritemsdyn_flow_approvalrequest privilege (Id=1eee850d-7c4b-41ce-8b27-a49ea47d751b) on OTC=10009. context.Caller=3b07cd95-6282-e911-a828-000d3ae03725\",\"type\":\"System.ServiceModel.FaultException
1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]\",\"stacktrace\":\" at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Execute(OrganizationRequest request, InvocationContext invocationContext, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, ExecutionContext executionContext, Dictionary
2 optionalParameters)\r\n at Microsoft.Crm.Extensibility.OData.CrmODataExecutionContext.Upsert(Entity entity)\r\n at Microsoft.Crm.Extensibility.OData.CrmODataExecutionContext.Update(Entity entity, UpdateOption updateOption)\r\n at Microsoft.Crm.Extensibility.OData.CrmODataServiceDataProvider.UpdateEdmEntity(CrmODataExecutionContext context, String edmEntityName, String entityKeyValue, EdmEntityObject entityObject)\r\n at Microsoft.Crm.Extensibility.OData.EntityController.PatchEntityImplementation(String& entityName, String key, EdmEntityObject entityDelta)\r\n at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult](ILogger logger, EventId eventId, ActivityType activityType, Func1 func, IEnumerable
1 additionalCustomProperties)\r\n at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute[TResult](ILogger logger, XrmTelemetryActivityType activityType, Func1 func)\\r\\n at lambda_method(Closure , Object , Object[] )\\r\\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)\\r\\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary
2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ApiControllerActionInvoker.d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ActionFilterResult.d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Dispatcher.HttpControllerDispatcher.d__1.MoveNext()\"}}}\r\n--batchresponse_ecf1a4fe-4de7-42af-9337-8053401f2973--", "source": "orgea3afa87.crm6.dynamics.com", "errors": [], "debugInfo": "clientRequestId: dc5d6e3c-06a5-4dfb-8eba-29a814ef394e" }
User contributions licensed under CC BY-SA 3.0