Given the IOrganizationService "service" created in a workflow as shown below, is there a way to get back the context.UserId? A WhoAmIRequest returns SYSTEM. The workflow is an organization scope workflow.
Thanks.
IWorkflowContext context = executionContext.GetExtension<IWorkflowContext>(); IOrganizationServiceFactory serviceFactory = executionContext.GetExtension<IOrganizationServiceFactory>(); IOrganizationService service = serviceFactory.CreateOrganizationService(context.UserId);