Impersonating a Service Account for a ServiceJob

I was wondering if moqui offered anything similiar to the Impersonation feature that .NET has.
For example, I have a ServiceJob (timer/cron job) in moqui which needs credentials of a certain level user (or service account) to call some services which require authorization.
The equivalent in Windows and C# would be something like:
using (WindowsImpersonationContext impersonatedUser = newId.Impersonate())
{
// Call some things which require these credentials
}
// Releasing the context object stops the impersonation
Is there an equivalent in moqui? Preferably something that can be applied on any OS? If so, what does it look like?
Thanks!

1 Like

How about just turning off authorization on the job service?

1 Like