Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

Error-The user with SystemUserId=b3a509d5-53cd-e811-8141-5065f38a8b01 in OrganizationContext=c885629e-1cef-45dc-ke0d-fb9596026b3c is not licensed, and its SystemUserAccessMode=0 is not either of (NonIn NonInteractive=4, SetupUser=1)

(0) ShareShare
ReportReport
Posted on by 785

Hi Experts ,

I am getting below error when  updating ,Deleting , Creating Opportunity  record only.This error started when user with Below UserId disabled in CRM .

I can't Enable user  because user no longer work.

Steps I prerformed -

1] Assigned all above user's records to myself

2] Assined All  user owner Workflows ,Processes to me 

3] Verify if any plugin is executing under context of given user 

The user with SystemUserId=b2a509d5-23cd-e811-8141-5065f38a8b01 in OrganizationContext=b885629e-1bef-45dc-be0d-fb9596026b3c is not licensed, and its SystemUserAccessMode=0 is not either of (NonInteractive=4, SetupUser=1)

Can you pleease assist me how to resolve this issue ?

  • Suggested answer
    CRM Enthusiast Profile Picture
    CRM Enthusiast 53 on at
    Error-The user with SystemUserId=b3a509d5-53cd-e811-8141-5065f38a8b01 in OrganizationContext=c885629e-1cef-45dc-ke0d-fb9596026b3c is not licensed, and its SystemUserAccessMode=0 is not either of (NonIn NonInteractive=4, SetupUser=1)
    Just stumbled on this post as we had same issue and found that the Disabled user had Access Mode as Read-Write which I updated to Non-Interactive and this fixed the issue.
    Hope it helps someone in future
     
  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: Error-The user with SystemUserId=b3a509d5-53cd-e811-8141-5065f38a8b01 in OrganizationContext=c885629e-1cef-45dc-ke0d-fb9596026b3c is not licensed, and its SystemUserAccessMode=0 is not either of (NonIn NonInteractive=4, SetupUser=1)

    Hi,

    It is a custom workflow activity code not plugin.

    It will run under workflow owner context if it is background workflow. So you need to change owner of your workflow.

    If you doing some kind of impersonation in your custom workflow activity code to execute business logic under disabled user then you will have to modify the code.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error-The user with SystemUserId=b3a509d5-53cd-e811-8141-5065f38a8b01 in OrganizationContext=c885629e-1cef-45dc-ke0d-fb9596026b3c is not licensed, and its SystemUserAccessMode=0 is not either of (NonIn NonInteractive=4, SetupUser=1)

    We made sure the plugins are not running under that user. Then we also made sure all plugins are deactivated and reactivated by an active user.

    It resolved this issue but then we are failing on the next issue where one of the plugins is calling ADXStudio Workflow.

    I do not see any plugin with that name, How did this one get installed? Not sure how to fix this.

    pastedimage1653591173442v1.png

  • Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: Error-The user with SystemUserId=b3a509d5-53cd-e811-8141-5065f38a8b01 in OrganizationContext=c885629e-1cef-45dc-ke0d-fb9596026b3c is not licensed, and its SystemUserAccessMode=0 is not either of (NonIn NonInteractive=4, SetupUser=1)

    Hi,

    You should login to plugin registration tool then find all the registered steps for your Entity. Then verify the Run in user context to see if it uses that user . If yes then you will have to update.

    You can also check Workflow of any assigned to the same user.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error-The user with SystemUserId=b3a509d5-53cd-e811-8141-5065f38a8b01 in OrganizationContext=c885629e-1cef-45dc-ke0d-fb9596026b3c is not licensed, and its SystemUserAccessMode=0 is not either of (NonIn NonInteractive=4, SetupUser=1)

    We have the same issue. One of the users is no longer with the company but we get this error.

    Exception Message: The user with SystemUserId=b5fc0feb-e7f8-ea11-a816-000d3a0c2b5d in OrganizationContext=ec53c7fc-26e7-4bed-93ab-681f4e5eeb9a is disabled

    ErrorCode: -2147220955
    HexErrorCode: 0x80040225

    ErrorDetails:
    ApiExceptionSourceKey: Step/Microsoft.Crm.Extensibility.ImageRetrievalStep
    ApiStepKey: 84b9d1cb-3e30-11db-b951-000cf1fe02ff
    ApiDepthKey: 1
    ApiActivityIdKey: dc5a19aa-447e-4e84-912e-47a2b23fb267
    ApiPluginSolutionNameKey: System
    ApiStepSolutionNameKey: System
    ApiExceptionCategory: ClientError
    ApiExceptionMessageName: unManagedidsusernotenabled
    ApiExceptionHttpStatusCode: 400

    HelpLink: go.microsoft.com/.../

    Activity Id: b5561052-93d1-4aef-b298-1e91f42cd670

    Can anyone help us resolve this issue?

    what plugin is calling this Step/Microsoft.Crm.Extensibility.ImageRetrievalStep?

  • prashant mirje Profile Picture
    prashant mirje 785 on at
    RE: Error-The user with SystemUserId=b3a509d5-53cd-e811-8141-5065f38a8b01 in OrganizationContext=c885629e-1cef-45dc-ke0d-fb9596026b3c is not licensed, and its SystemUserAccessMode=0 is not either of (NonIn NonInteractive=4, SetupUser=1)

    Hi, After Assigning and enabling user ,It works . But user needs to disabled as user is no longer working for org .

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: Error-The user with SystemUserId=b3a509d5-53cd-e811-8141-5065f38a8b01 in OrganizationContext=c885629e-1cef-45dc-ke0d-fb9596026b3c is not licensed, and its SystemUserAccessMode=0 is not either of (NonIn NonInteractive=4, SetupUser=1)

    Hi,

    Have you tried to assign license to this user from Office 365 portal.

    Also check Access mode value on the user form under CAL.

    Please mark my answer verified if i were helpful

  • prashant mirje Profile Picture
    prashant mirje 785 on at
    RE: Error-The user with SystemUserId=b3a509d5-53cd-e811-8141-5065f38a8b01 in OrganizationContext=c885629e-1cef-45dc-ke0d-fb9596026b3c is not licensed, and its SystemUserAccessMode=0 is not either of (NonIn NonInteractive=4, SetupUser=1)

    Exception Message: The user with SystemUserId=c2a509d5-23cd-e811-8141-5065f38a8b01 in OrganizationContext=b0791a7a-09a4-4236-9397-c7c0b8253359 is not licensed, and its SystemUserAccessMode=0 is not either of (NonInteractive=4, SetupUser=1)

    ErrorCode: -2147167669

    HexErrorCode: 0x8004d24b

    ErrorDetails:

    ApiExceptionSourceKey: Step/Microsoft.Crm.Extensibility.ImageRetrievalStep

    ApiStepKey: 84b9d1ca-3e30-11db-b951-000cf1fe02ff

    ApiDepthKey: 1

    ApiActivityIdKey: 3e5b73ae-e7c8-4c52-a545-52786bbeaaba

    ApiPluginSolutionNameKey: System

    ApiStepSolutionNameKey: System

    ApiExceptionCategory: ClientError

    ApiExceptionMessageName: UserNotAssignedLicense

    ApiExceptionHttpStatusCode: 400

    HelpLink: go.microsoft.com/.../

    Activity Id: 3897e5ab-88c6-4c19-bba4-c9739a469641

  • prashant mirje Profile Picture
    prashant mirje 785 on at
    RE: Error-The user with SystemUserId=b3a509d5-53cd-e811-8141-5065f38a8b01 in OrganizationContext=c885629e-1cef-45dc-ke0d-fb9596026b3c is not licensed, and its SystemUserAccessMode=0 is not either of (NonIn NonInteractive=4, SetupUser=1)

    <s:Envelope xmlns:s="schemas.xmlsoap.org/.../faultcode><faultstring xml:lang="en-US">The user with SystemUserId=c2a509d5-23cd-e811-8141-5065f38a8b02 in OrganizationContext=c885629e-1bef-45dc-be0d-fb9596026b3d is not licensed, and its SystemUserAccessMode=0 is not either of (NonInteractive=4, SetupUser=1)</faultstring><detail><OrganizationServiceFault xmlns="schemas.microsoft.com/.../Contracts" xmlns:i="www.w3.org/.../ErrorCode><ErrorDetails xmlns:a="schemas.datacontract.org/.../a:key><a:value xmlns:b="www.w3.org/.../XMLSchema" i:type="b:string">Step/Microsoft.Crm.Extensibility.ImageRetrievalStep</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiOriginalExceptionKey</a:key><a:value xmlns:b="www.w3.org/.../XMLSchema" i:type="b:string">Microsoft.Crm.CrmException: The user with SystemUserId=b2a509d5-23cd-e811-8141-5065f38a8b01 in OrganizationContext=b885629e-1bef-45dc-be0d-fb9596026b3c is not licensed, and its SystemUserAccessMode=0 is not either of (NonInteractive=4, SetupUser=1)

      at Microsoft.Crm.BusinessEntities.SecurityLibrary.CheckUserLicenseStatus(IUser user, SpecialUser userType, IOrganizationContext context)

      at Microsoft.Crm.BusinessEntities.SecurityLibrary.<>c__DisplayClass92_0.<CheckDisabledStatus>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.BusinessEntities.SecurityLibrary.<>c__DisplayClass171_0.<VerifyUser>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.BusinessEntities.ExecutionContext.VerifyUser(Guid userId)

      at Microsoft.Crm.BusinessEntities.ExecutionContext.SetCaller(Guid callerId, Boolean setCallerLanguage, Boolean verifyUser, Int32 callerLanguageCode, Guid previousCallerBusinessId)

      at Microsoft.Crm.BusinessEntities.ExecutionContext.SwitchCaller(Guid callerId, Boolean switchAuditInfo, Boolean changeLanguageCode, Boolean verifyUser)

      at Microsoft.Crm.BusinessEntities.UserContext..ctor(IUserContext context, Guid callerId, Boolean switchAuditingInfo, Boolean changeCallerLanguage, Boolean verifyUser, Boolean keepExternalPartyContext)

      at Microsoft.Crm.Extensibility.ImageRetrievalStep.RetrieveEntityWithColumns(BusinessEntityMoniker businessEntityMoniker, List`1 columns, ContextEntityKey entityRequest, PipelineExecutionContext context)

      at Microsoft.Crm.Extensibility.ImageRetrievalStep.Execute(PipelineExecutionContext context)

      at Microsoft.Crm.Extensibility.PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context)

      at Microsoft.Crm.Extensibility.Pipeline.<>c__DisplayClass7_0.<RunStep>b__0()</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiStepKey</a:key><a:value xmlns:b="schemas.microsoft.com/.../" i:type="b:guid">84b9d1ca-3e30-11db-b951-000cf1fe02ff</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiDepthKey</a:key><a:value xmlns:b="www.w3.org/.../XMLSchema" i:type="b:int">1</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiActivityIdKey</a:key><a:value xmlns:b="schemas.microsoft.com/.../" i:type="b:guid">37f1872c-5f3d-44c5-825e-c3177fdbc3a8</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiPluginSolutionNameKey</a:key><a:value xmlns:b="www.w3.org/.../XMLSchema" i:type="b:string">System</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiStepSolutionNameKey</a:key><a:value xmlns:b="www.w3.org/.../XMLSchema" i:type="b:string">System</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiExceptionCategory</a:key><a:value xmlns:b="www.w3.org/.../XMLSchema" i:type="b:string">ClientError</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiExceptionMessageName</a:key><a:value xmlns:b="www.w3.org/.../XMLSchema" i:type="b:string">UserNotAssignedLicense</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiExceptionHttpStatusCode</a:key><a:value xmlns:b="www.w3.org/.../XMLSchema" i:type="b:int">400</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiSourceActivityKey</a:key><a:value xmlns:b="www.w3.org/.../XMLSchema" i:type="b:string">Microsoft.Crm.Extensibility.PipelineStep</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiExceptionOwnerKey</a:key><a:value xmlns:b="www.w3.org/.../XMLSchema" i:type="b:string">COMMONDATASERVICECDS\CDSAPI-Reliability</a:value></KeyValuePairOfstringanyType></ErrorDetails><HelpLink>go.microsoft.com/.../ user with SystemUserId=b2a509d5-23cd-e811-8141-5065f38a8b01 in OrganizationContext=b885629e-1bef-45dc-be0d-fb9596026b3c is not licensed, and its SystemUserAccessMode=0 is not either of (NonInteractive=4, SetupUser=1)</Message><Timestamp>2021-06-10T10:05:48.7650878Z</Timestamp><ExceptionRetriable>false</ExceptionRetriable><ExceptionSource i:nil="true"/><InnerFault><ActivityId>37f1872c-5f3d-44c5-825e-c3177fdbc3a8</ActivityId><ErrorCode>-2147167669</ErrorCode><ErrorDetails xmlns:a="schemas.datacontract.org/.../a:key><a:value xmlns:b="www.w3.org/.../XMLSchema" i:type="b:string">Step/Microsoft.Crm.Extensibility.ImageRetrievalStep</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiSourceActivityKey</a:key><a:value xmlns:b="www.w3.org/.../XMLSchema" i:type="b:string">Microsoft.Crm.Extensibility.PipelineStep</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiExceptionOwnerKey</a:key><a:value xmlns:b="www.w3.org/.../XMLSchema" i:type="b:string">COMMONDATASERVICECDS\CDSAPI-Reliability</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiOriginalExceptionKey</a:key><a:value xmlns:b="www.w3.org/.../XMLSchema" i:type="b:string">Microsoft.Crm.CrmException: The user with SystemUserId=b2a509d5-23cd-e811-8141-5065f38a8b01 in OrganizationContext=b885629e-1bef-45dc-be0d-fb9596026b3c is not licensed, and its SystemUserAccessMode=0 is not either of (NonInteractive=4, SetupUser=1)

      at Microsoft.Crm.BusinessEntities.SecurityLibrary.CheckUserLicenseStatus(IUser user, SpecialUser userType, IOrganizationContext context)

      at Microsoft.Crm.BusinessEntities.SecurityLibrary.<>c__DisplayClass92_0.<CheckDisabledStatus>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.BusinessEntities.SecurityLibrary.<>c__DisplayClass171_0.<VerifyUser>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.BusinessEntities.ExecutionContext.VerifyUser(Guid userId)

      at Microsoft.Crm.BusinessEntities.ExecutionContext.SetCaller(Guid callerId, Boolean setCallerLanguage, Boolean verifyUser, Int32 callerLanguageCode, Guid previousCallerBusinessId)

      at Microsoft.Crm.BusinessEntities.ExecutionContext.SwitchCaller(Guid callerId, Boolean switchAuditInfo, Boolean changeLanguageCode, Boolean verifyUser)

      at Microsoft.Crm.BusinessEntities.UserContext..ctor(IUserContext context, Guid callerId, Boolean switchAuditingInfo, Boolean changeCallerLanguage, Boolean verifyUser, Boolean keepExternalPartyContext)

      at Microsoft.Crm.Extensibility.ImageRetrievalStep.RetrieveEntityWithColumns(BusinessEntityMoniker businessEntityMoniker, List`1 columns, ContextEntityKey entityRequest, PipelineExecutionContext context)

      at Microsoft.Crm.Extensibility.ImageRetrievalStep.Execute(PipelineExecutionContext context)

      at Microsoft.Crm.Extensibility.PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context)

      at Microsoft.Crm.Extensibility.Pipeline.<>c__DisplayClass7_0.<RunStep>b__0()</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiStepKey</a:key><a:value xmlns:b="schemas.microsoft.com/.../" i:type="b:guid">84b9d1ca-3e30-11db-b951-000cf1fe02ff</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiDepthKey</a:key><a:value xmlns:b="www.w3.org/.../XMLSchema" i:type="b:int">1</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiActivityIdKey</a:key><a:value xmlns:b="schemas.microsoft.com/.../" i:type="b:guid">37f1872c-5f3d-44c5-825e-c3177fdbc3a8</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiPluginSolutionNameKey</a:key><a:value xmlns:b="www.w3.org/.../XMLSchema" i:type="b:string">System</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiStepSolutionNameKey</a:key><a:value xmlns:b="www.w3.org/.../XMLSchema" i:type="b:string">System</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiExceptionCategory</a:key><a:value xmlns:b="www.w3.org/.../XMLSchema" i:type="b:string">ClientError</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiExceptionMessageName</a:key><a:value xmlns:b="www.w3.org/.../XMLSchema" i:type="b:string">UserNotAssignedLicense</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiExceptionHttpStatusCode</a:key><a:value xmlns:b="www.w3.org/.../XMLSchema" i:type="b:int">400</a:value></KeyValuePairOfstringanyType></ErrorDetails><HelpLink i:nil="true"/><Message>The user with SystemUserId=b2a509d5-23cd-e811-8141-5065f38a8b01 in OrganizationContext=b885629e-1bef-45dc-be0d-fb9596026b3c is not licensed, and its SystemUserAccessMode=0 is not either of (NonInteractive=4, SetupUser=1)</Message><Timestamp>2021-06-10T10:05:48.7650878Z</Timestamp><ExceptionRetriable>false</ExceptionRetriable><ExceptionSource i:nil="true"/><InnerFault i:nil="true"/><OriginalException i:nil="true"/><TraceText i:nil="true"/></InnerFault><OriginalException i:nil="true"/><TraceText i:nil="true"/></OrganizationServiceFault></detail></s:Fault></s:Body></s:Envelope>

  • Suggested answer
    Charan Raju C R Profile Picture
    Charan Raju C R 3,155 Super User 2024 Season 1 on at
    RE: Error-The user with SystemUserId=b3a509d5-53cd-e811-8141-5065f38a8b01 in OrganizationContext=c885629e-1cef-45dc-ke0d-fb9596026b3c is not licensed, and its SystemUserAccessMode=0 is not either of (NonIn NonInteractive=4, SetupUser=1)

    There could be some other logic in plug-ins which has something to do with this user. Example, assigning a record to this user based the role or team the user belongs to.

    So, first you need to identify which plug-in is causing problem. Deactivate all the plug-ins and try to reproduce the error. If no error occurs, then try to enable plug-in steps one-by-one. Once you found which plug-in is causing error, check the logic in that plug-in's source code if there is anything to do with user accounts.

    Also please download and share the complete error log here.

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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans