Managing worker permissions


I am trying to write a batch job that creates a large number of users in an environment. I can run the functional code from a console and I know it works. When I moved the code to a batch job, I am getting an error that suggests the worker does not have permission to create a user. I do not see the worker as a user and do not know how to change its permissions. Is there a way to run a batch job using the user’s permissions?

errorMsg: User 'worker' (Identity worker) is not authorized to access Target [sunpower/prod/UserAdmin?action=createUser]


try runAsUser: true


runAsUser does not appear to be a field for a JSBatchJob.