How to scheduled Job run with specific role,

Hello

I have one object class is a special class and only admin user can write here.

I want to manage some operations (write/update) of that object class with a scheduled job.

When I make writing to this object class public, the job works.
But only when I authorize the admin user to write with ACL, the job does not work.

How do I run the job only with admin, without making the writing rule of the related object class public?

You can use master key

save(null, { useMasterKey: true }) it is work, thanks

1 Like