Hello,
How can I run assembly in another user ?
Thanks.
Hi Marina,
You could achieve this by two approach.
1. Using code - while retrieving the service inside plugin
2. Using plugin registration tool
Please refer below url for more info:
Hello Marina,
Based on your question i'm guessing that you are trying to impersonate a user during a plug-in execution.
In that case there is 2 ways of doing this:
- Through UI: by using the plug-in regitration tool you can easily specify the user context (the default value is Calling User)
- By code: you can override the setting specified at registration at run time by setting the IOrganizationServiceFactory.CreateOrganizationService(Nullable<Guid>) userId parameter.
You will find more details into the below documentation links:
https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/impersonate-another-user
https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/impersonate-a-user
Hope this helps!
Hello,
Do you mean impersonate code with another user?
If this is what you mean then you cam simply use Plugin registration tool to set Run in user context to the user through which you need to execute the logic.
Please let me know if this helps !
Hello,
Can you please provide more details about your scenario?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156