RE: Proper way to gracefully delete D365 App User w/ Azure App Registration?
If I try and delete the user from within D365 I get the following error:
Event Journaling
Invalid Recipient Type If you contact support, please provide the technical details.
Activity ID: 44c53370-8192-4b89-8fc4-5e440382ad52
Timestamp: Tue Dec 01 2020 22:23:14 GMT-0500 (Eastern Standard Time)
The error log is shown below.
s:ClientThe 'Delete' method does not support entities of type 'systemuser'.44c53370-8192-4b89-8fc4-5e440382ad52-2147219456ApiExceptionSourceKeyApi/PrePipelineApiOriginalExceptionKeyMicrosoft.Crm.CrmException: The 'Delete' method does not support entities of type 'systemuser'.
at Microsoft.Crm.Extensibility.InternalMessageDispatcher.Execute(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.ExternalMessageDispatcher.ExecuteInternal(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, Guid callerRegardingObjectId, Int32 invocationSource, Version endpointVersion, OrganizationRequest request, OrganizationInternalRequest organizationInternalRequest)
at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.DispatchRequest(OrganizationRequest request, OrganizationInternalRequest organizationInternalRequest, SdkResponseDescription responseDescription, SdkPerformanceCounterContext sdkPerformanceCounterContext)
at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.ExecuteRequestRequestWithInstrumentation(OrganizationRequest request, OrganizationInternalRequest organizationInternalRequest)
at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.ExecuteRequestRequestWithInstrumentationOperation(OrganizationRequest request, OrganizationInternalRequest organizationInternalRequest)
at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.<>c__DisplayClass20_0.b__0()ApiStepKey00000000-0000-0000-0000-000000000000ApiDepthKey0ApiActivityIdKey44c53370-8192-4b89-8fc4-5e440382ad52ApiPluginSolutionNameKeySystemApiStepSolutionNameKeySystemApiExceptionCategoryClientErrorApiExceptionMesageNameSdkEntityDoesNotSupportMessageApiExceptionHttpStatusCode400http://go.microsoft.com/fwlink/?LinkID=398563&error=Microsoft.Crm.CrmException:80040800&client=platformThe 'Delete' method does not support entities of type 'systemuser'.2020-12-02T03:23:14.1337035Zfalse
How can I deactivate or delete this user?
There appears to be no way to do that?