Applies to Product - Microsoft Dataverse
What’s happening?
The background operation execution is not impersonating the system admin user as expected when using the 'ExecuteBackgroundOperation' request in a custom plugin.
Reason:
This arises when the 'ExecuteBackgroundOperation' plugin does not create records in the 'backgroundoperation' table as being created by the system admin user, despite the organization service being created with the system admin user GUID.
Resolution:
- Ensure that the custom plugin is correctly creating an IOrganizationService using the system admin user GUID.
- Verify that the 'ExecuteBackgroundOperation' request is being executed with the admin service created from the system admin user GUID.
- Check the implementation of the plugin to confirm that the background operation is being executed as intended, and that the resulting record in the 'backgroundoperation' table reflects the correct 'CreatedBy' user.
- Review the code implementation to ensure that the parameters for the 'ExecuteBackgroundOperation' request are correctly set and that the request is being processed as expected.
