Logon as Batch
JAMS Jobs run as batch processes using Windows. As a requirement, these batch jobs must have the Log on as Batch user rights for the Windows account that runs them. If running the Job on an agent, users must also have Log on as Batch privileges within the local security of the agent machine.
Keep in mind that the agent Job must have appropriate access to perform whatever operation the particular Job is doing; for example, if a copy process to a specific folder is included, you must have access to that folder.
Granting Rights
You can grant the Log on as a Batch Job rights at the domain or the local level. To manage rights, use the Local Security Policy or Domain Security Policy Administrator utilities.
Managing Rights on Member Servers and Workstations
To manage user rights on member servers and workstations, choose the Select Domain... option from the User menu. Enter \\machinename in the Domain field and click OK to be connected to the specific machine. From here you can manage user rights on that machine.
Jobs That Run as a gMSA
A Job whose Execute As Credential is linked to a group Managed Service Account (gMSA) logs on as a service, not as a batch job. The gMSA needs the Log on as a service right on the machine that runs the Job, not Log on as a batch job.
Windows grants Log on as a service to every service logon by default, through the NT SERVICE\ALL SERVICES group, so no change is usually needed. However, if a Group Policy defines the Log on as a service right, the policy replaces the machine's own list at the next policy update. In that case, add the gMSA, or NT SERVICE\ALL SERVICES, to the policy. Otherwise the Job fails with an error saying the account has not been granted "Log on as a service".
See Configuring a Secret Provider for the other gMSA prerequisites.