Automated Process User in Salesforce
Below processes run under the Automated Process User Context Platform event triggers/flows/process. Approval Process Knowledge Actions. You can use getSessionId() both synchronously and asynchronously. In asynchronous Apex (Batch, Future, Queueable, ....