I have a function that assigns (and unassigns) badges to members. Because it queries Members/PrivateMembersData, I am able to run the function if I call it manually (as in, from the Wix editor), but the job scheduler is giving me a permissions error (403) in Stackdriver no matter what I try. Does anyone have any idea?
Here is my jobs.config:
{
"jobs": [
{
"functionLocation": "/badges.jsw",
"functionName": "assignWeeklyBadges",
"description": "Assigns and removes weekly badges and birthday badge",
"executionConfig": {
"time": "04:00",
}
}
]
}