Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Error trying to change User to Non Interactive

(0) ShareShare
ReportReport
Posted on by 95

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 ---&gt; 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.&lt;&gt;c__DisplayClass25_0.&lt;HandleApplicationUser&gt;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.&lt;&gt;c__DisplayClass35_0.&lt;UpdateInternal&gt;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.&lt;&gt;c__DisplayClass3_0.&lt;RunStep&gt;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.

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,961 Moderator on at
    RE: Error trying to change User to Non Interactive

    Glad that your issue is resolved.

    Please mark this thread verified so that it will be helpful for other community members.

    Please Mark My Answer Verified If I Were Helpful

  • stern Profile Picture
    stern 95 on at
    RE: Error trying to change User to Non Interactive

    To give an update on this, I ended up just opening a support ticket and support was able to update the Access Mode on their end.

  • Suggested answer
    RE: Error trying to change User to Non Interactive

    Just to confirm, have you tried checking from customization area - Settings > Customizations > Customize the system > SDK messaging processing steps > Put a filter on Primary object type code for User entity ? 

  • stern Profile Picture
    stern 95 on at
    RE: Error trying to change User to Non Interactive

    I can confirm that there are no plugins on the User entity, and no custom development at all in the system

  • stern Profile Picture
    stern 95 on at
    RE: Error trying to change User to Non Interactive

    Good idea Satish. I will try to confirm that - as far as I know there aren't any plugins registered on that entity, but I do not know of any plugins in this environment.

  • RE: Error trying to change User to Non Interactive

    Hello,

    This error can also occur if there is any plugin on user entity so, can you check if there is any plugin registered on User entity ? If yes, try to deactivate the step and then try again to change the access mode ?

    If above steps doesn't work, can you let us know if it's only happening with "Microsoft Flow" user or it can be repro with any other user as well ? - This is just an isolation step.

  • stern Profile Picture
    stern 95 on at
    RE: Error trying to change User to Non Interactive

    Thanks for the response! I may need to get help from a colleague on doing it that way, but I will let you know the results if I get the chance to try it out.

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,961 Moderator on at
    RE: Error trying to change User to Non Interactive

    Hi,

    Can you try updating access mode using C# code with the help of organization service and check if it works.

    Entity user = serviceProxy.Retrieve("systemuser", new Guid("5B4ACEA9-72F7-E711-A83A-000D3AB53DEC"), new Microsoft.Xrm.Sdk.Query.ColumnSet("isdisabled", "accessmode", "fullname"));

    user["accessmode"] = new OptionSetValue(4);

    serviceProxy.Update(user);

    replace User record ID with your user ID.

    If found helpful, Please mark my answer verified.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,436 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans