I have a function that allows the end user to execute a Workflow (containing many APIs) or schedule it to run as a background job.
Example: User1
In the case of executing an API directly, how do I run it under a specific permission?
You can override current session values and call your method inside the using block.
I have put my code inside a
usingblock, but all APIs were fired successfully
Declare your API methods as public virtual as there are some restrictions for AbpAuthorize.