I am getting an error trying to change a user to Access Mode = Non-Interactive. My User is a system admin and Office 365 global admin. It looks like my D365 instance already has 7 Active Non-Interactive Users but I can't change them to a different Access Mode (I get errors when I try) or deactivate them (can't find where to do it, can't find them as O365 Users). It looks like the other Non-Interactive Users may not have associated O365 Users because they were created automatically, like "Power Apps Checker Application"
The user I am trying to change is "Microsoft Flow", a User automatically created via Power Automate. It doesn't appear to have an O365 User that I can reference or license. The user currently has Access Mode = Administrative, and looking through the record's Audit History someone changed it to that value several months prior (before the other non-interactive Users were created if that is relevant).
I need to change the "Microsoft Flow" User to Non-Interactive because my Approval Flows are getting access errors. So if there were an alternative method of resolving those, that would fix my problem, but I can't identify any other way to get my Approval Flows to work.
The error itself just says "Error" and the log file error is:
Unhandled exception:
Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
Message: -2147218112. applicationId = 0eda3b13-ddc9-4c25-b7dd-2f6ea073d6b7 systemUserId = 18b919e0-644c-ea11-a812-000d3a33febe current accessMode = 1 new accessMode = 4Detail:
<OrganizationServiceFault xmlns:i="">www.w3.org/.../XMLSchema-instance" xmlns="">schemas.microsoft.com/.../Contracts">
<ActivityId>3f06143c-02fa-471d-8d73-1513dd4950b7</ActivityId>
<ErrorCode>-2147218112</ErrorCode>
<ErrorDetails xmlns:d2p1="">schemas.datacontract.org/.../System.Collections.Generic">
<KeyValuePairOfstringanyType>
<d2p1:key>ApiExceptionSourceKey</d2p1:key>
<d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">Plugin/Microsoft.Crm.ObjectModel.SystemUserService</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiOriginalExceptionKey</d2p1:key>
<d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">Microsoft.Crm.CrmException: -2147218112. applicationId = 0eda3b13-ddc9-4c25-b7dd-2f6ea073d6b7 systemUserId = 18b919e0-644c-ea11-a812-000d3a33febe current accessMode = 1 new accessMode = 4 ---> Microsoft.Crm.CrmException: -2147218112. applicationId = 0eda3b13-ddc9-4c25-b7dd-2f6ea073d6b7 systemUserId = 18b919e0-644c-ea11-a812-000d3a33febe current accessMode = 1 new accessMode = 4
at Microsoft.Crm.ObjectModel.SystemUserServiceInternal`1.CheckAccessModeForApplicationUser(IBusinessEntity systemUser, IBusinessEntity retrievedUser)
at Microsoft.Crm.ObjectModel.SystemUserServiceInternal`1.<>c__DisplayClass25_0.<HandleApplicationUser>b__0()
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable`1 additionalCustomProperties)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
at Microsoft.Crm.ObjectModel.SystemUserServiceInternal`1.<>c__DisplayClass35_0.<UpdateInternal>b__0()
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable`1 additionalCustomProperties)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
at Microsoft.Crm.ObjectModel.SystemUserService.Update(IBusinessEntity entity, ExecutionContext context)
--- End of inner exception stack trace ---
at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.Pipeline.<>c__DisplayClass3_0.<RunStep>b__0()</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiStepKey</d2p1:key>
<d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">bccdbb1b-ea3e-db11-86a7-000a3a5473e8</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiDepthKey</d2p1:key>
<d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">1</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiActivityIdKey</d2p1:key>
<d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">3f06143c-02fa-471d-8d73-1513dd4950b7</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiPluginSolutionNameKey</d2p1:key>
<d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">System</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiStepSolutionNameKey</d2p1:key>
<d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">System</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiExceptionCategory</d2p1:key>
<d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">ClientError</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiExceptionMesageName</d2p1:key>
<d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">ApplicationUserCannotChangeAccessMode</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiExceptionHttpStatusCode</d2p1:key>
<d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">400</d2p1:value>
</KeyValuePairOfstringanyType>
</ErrorDetails>
<HelpLink>go.microsoft.com/.../
<Message>-2147218112. applicationId = 0eda3b13-ddc9-4c25-b7dd-2f6ea073d6b7 systemUserId = 18b919e0-644c-ea11-a812-000d3a33febe current accessMode = 1 new accessMode = 4</Message>
<Timestamp>2020-07-30T02:13:19.5874323Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>
I can't find that error code online to determine what it means.